[wp-trac] [WordPress Trac] #55840: Internationalization support for sizes added by 'edit_custom_thumbnail_sizes' filter

WordPress Trac noreply at wordpress.org
Fri May 27 11:41:34 UTC 2022


#55840: Internationalization support for sizes added by
'edit_custom_thumbnail_sizes' filter
-------------------------+---------------------
 Reporter:  tmatsuur     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.0.1
Component:  Media        |     Version:  6.0
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+---------------------
Changes (by mukesh27):

 * type:  feature request => enhancement


Comment:

 Hi there!

 I checked the issue and sent some feedback.

 For the custom image name system use `get_intermediate_image_sizes()`
 function [https://github.com/WordPress/WordPress/blob/master/wp-
 admin/includes/image-edit.php#L253 here] so it will not add `Full Size`
 image type.

 Instead of a fixed image size and name array can we use the
 `image_size_names_choose` filter with some default array?

 {{{#!php
 <?php
 $image_size_names = apply_filters(
         'image_size_names_choose',
         array(
                 'medium'       => __( 'Medium' ),
                 'medium_large' => __( 'Medium Large' ),
                 'large'        => __( 'Large' ),
         )
 );
 }}}

 I will upload patch soon.

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


More information about the wp-trac mailing list