Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MSF
/
msf-climate-hub
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2a0b7535
authored
2023-11-13 15:38:46 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
eeee
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
5f0a4bd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
wp-content/plugins/pdf-thumbnail-generator/pdf-thumbnail-generator.php
wp-content/plugins/pdf-thumbnail-generator/pdf-thumbnail-generator.php
View file @
2a0b753
...
...
@@ -92,7 +92,7 @@ if( ! class_exists('pdf_thumbnail_generator') ){
if
(
$pdfs
){
foreach
(
$pdfs
as
$pdf
){
$regenerate
=
true
;
$thumbnail
=
get_post_meta
(
$pdf
,
'_pdf_thumbnail'
,
true
)
;
$thumbnail
;
if
(
!
$thumbnail
||
$regenerate
){
$generated
=
$this
->
generate_thumbnail
(
$pdf
,
$regenerate
);
$thumbnail
=
get_post_meta
(
$pdf
,
'_pdf_thumbnail'
,
true
);
...
...
@@ -194,7 +194,7 @@ if( ! class_exists('pdf_thumbnail_generator') ){
function
generate_thumbnail
(
$pdf_id
,
$regenerate
=
false
){
if
(
get_post_mime_type
(
$pdf_id
)
===
'application/pdf'
){
$regenerate
=
true
;
$thumbnail
=
get_post_meta
(
$pdf_id
,
'_pdf_thumbnail'
,
true
);
if
(
$thumbnail
){
if
(
$regenerate
){
...
...
Please
register
or
sign in
to post a comment