[wp-trac] [WordPress Trac] #50681: default-filters.php contains non-tweakable parameters

WordPress Trac noreply at wordpress.org
Sat Sep 26 01:02:19 UTC 2020


#50681: default-filters.php contains non-tweakable parameters
--------------------------+-------------------------------
 Reporter:  rsepierre     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  5.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  coding-standards
--------------------------+-------------------------------

Comment (by peterwilsoncc):

 The reason this is not considered a blocker is that theme authors may
 modify the images sizes by calling `remove_image_size()` in
 `functions.php`, for example:


 {{{#!php
 <?php
 // 2x medium_large size.
 remove_image_size( '1536x1536', 1536, 1536 );
 // 2x large size.
 remove_image_size( '2048x2048', 2048, 2048 );
 }}}

 Plugin authors can modify the sizes with a similar approach provided it is
 run later than the `plugins_loaded` default priority.

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


More information about the wp-trac mailing list