[wp-trac] [WordPress Trac] #22538: 'wp_image_editor_class' vs. 'wp_image_editors'
WordPress Trac
noreply at wordpress.org
Sat Nov 24 00:31:14 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 scribu):
> We should probably have a variable filter on the result of test(), which
*should* receive $args. Think about the use case of *removing* a single
editor from the rotation based on a certain situation. You don't want to
force a particular one, you just want to remove it. Also great for unit
testing.
How would that be great for unit testing? And I really can't think of a
use case where you would want to prevent an implementation from being used
only some times. If you want to remove it completely, you have
'image_editors'.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22538#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list