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
5f0a4bd5
authored
2023-11-13 15:30:42 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
qa
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
af3dcf8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
wp-content/plugins/pdf-thumbnail-generator/pdf-thumbnail-generator.php
wp-content/plugins/pdf-thumbnail-generator/pdf-thumbnail-generator.php
View file @
5f0a4bd
...
...
@@ -91,7 +91,7 @@ if( ! class_exists('pdf_thumbnail_generator') ){
$pdfs
=
$wpdb
->
get_col
(
"SELECT ID FROM
{
$wpdb
->
posts
}
WHERE
{
$wpdb
->
posts
}
.post_type = 'attachment' AND
{
$wpdb
->
posts
}
.post_mime_type = 'application/pdf'"
);
if
(
$pdfs
){
foreach
(
$pdfs
as
$pdf
){
$regenerate
=
$_GET
[
'generate'
]
==
'all'
?
true
:
fals
e
;
$regenerate
=
tru
e
;
$thumbnail
=
get_post_meta
(
$pdf
,
'_pdf_thumbnail'
,
true
);
if
(
!
$thumbnail
||
$regenerate
){
$generated
=
$this
->
generate_thumbnail
(
$pdf
,
$regenerate
);
...
...
Please
register
or
sign in
to post a comment