[wp-trac] [WordPress Trac] #36531: Default image size medium_large is not generated

WordPress Trac noreply at wordpress.org
Thu May 12 13:02:24 UTC 2016


#36531: Default image size medium_large is not generated
--------------------------+-----------------------------
 Reporter:  Indent        |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  4.6
Component:  Media         |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------

Comment (by ocean90):

 Replying to [comment:3 joemcgill]:
 > Looks like any time the media options are saved (wp-admin/options-
 media.php) the values for `medium_large_size_h` and `medium_large_size_w`
 are being set to `null` because no value for that option exists in the
 `$_POST` request.

 That's right, but it gets stored as `0` because of `sanitize_option()`
 which does `$value = absint( $value );` for both options. So, for an
 upgrade routine we can't detect if the change was intentionally or not.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36531#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list