[wp-trac] [WordPress Trac] #43226: Crop setting in thumbnails never set when uploading PDF files

WordPress Trac noreply at wordpress.org
Mon Feb 5 09:14:39 UTC 2018


#43226: Crop setting in thumbnails never set when uploading PDF files
----------------------------+-----------------------------
 Reporter:  leemon          |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Media           |    Version:  4.9.2
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 I don't know if it's specific to my server config but, for some reason,
 the crop setting in thumbnails is never set when I upload PDF files.

 Apparently, the following conditional statement in the '''/wp-
 admin/includes/image.php''' file is never true when it's supposed to run
 for medium and large thumbnails:

 https://core.trac.wordpress.org/browser/tags/4.9/src/wp-
 admin/includes/image.php#L244

 If I remove the conditional statement the crop setting is set for all
 thumbnails.

 I'm using WordPress 4.9.2 with PHP 7.0.27

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43226>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list