qa
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -91,7 +91,7 @@ if( ! class_exists('pdf_thumbnail_generator') ){ | ... | @@ -91,7 +91,7 @@ if( ! class_exists('pdf_thumbnail_generator') ){ |
| 91 | $pdfs = $wpdb->get_col("SELECT ID FROM {$wpdb->posts} WHERE {$wpdb->posts}.post_type = 'attachment' AND {$wpdb->posts}.post_mime_type = 'application/pdf'"); | 91 | $pdfs = $wpdb->get_col("SELECT ID FROM {$wpdb->posts} WHERE {$wpdb->posts}.post_type = 'attachment' AND {$wpdb->posts}.post_mime_type = 'application/pdf'"); |
| 92 | if( $pdfs ){ | 92 | if( $pdfs ){ |
| 93 | foreach( $pdfs as $pdf ){ | 93 | foreach( $pdfs as $pdf ){ |
| 94 | $regenerate = $_GET['generate'] == 'all' ? true : false; | 94 | $regenerate = true; |
| 95 | $thumbnail = get_post_meta( $pdf, '_pdf_thumbnail', true ); | 95 | $thumbnail = get_post_meta( $pdf, '_pdf_thumbnail', true ); |
| 96 | if( ! $thumbnail || $regenerate ){ | 96 | if( ! $thumbnail || $regenerate ){ |
| 97 | $generated = $this->generate_thumbnail( $pdf, $regenerate ); | 97 | $generated = $this->generate_thumbnail( $pdf, $regenerate ); | ... | ... |
-
Please register or sign in to post a comment