[wp-trac] [WordPress Trac] #24681: Translating custom image size names

WordPress Trac noreply at wordpress.org
Wed Jul 3 20:26:29 UTC 2013


#24681: Translating custom image size names
---------------------------+------------------------------
 Reporter:  sami.keijonen  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------------------
Changes (by krogsgard):

 * cc: krogsgard (added)


Comment:

 I think you'd want to add $translated_name as the last parameter for
 backward compatibility. And you'd need to set a default as well.

 In core, I think it'd be more like
 {{{
 function add_image_size( $name, $width = 0, $height = 0, $crop = false,
 $translated_name = __(  $name ) ) {
 // stuff
 }
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24681#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list