[wp-trac] [WordPress Trac] #22538: 'wp_image_editor_class' vs. 'wp_image_editors'

WordPress Trac noreply at wordpress.org
Thu Nov 22 19:13:02 UTC 2012


#22538: 'wp_image_editor_class' vs. 'wp_image_editors'
-------------------------+--------------------
 Reporter:  scribu       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.5
Component:  Media        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+--------------------

Comment (by macbrink):

 Replying to [comment:9 scribu]:
 > Here's what I had in mind:
 >
 > {{{
 > class My_Image_Editor_Decorator {
 >
 >       function __construct( $editor ) {
 >               $this->editor = $editor;
 >       }

 This decorator won't work. If you want to override the
 generate_file_name() method, which is called by _save(), the editor
 instance will never call the method defined in the decorator class

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


More information about the wp-trac mailing list