[wp-trac] [WordPress Trac] #22250: Useful helper function, add_action_with_args()
WordPress Trac
noreply at wordpress.org
Mon Oct 22 16:08:55 UTC 2012
#22250: Useful helper function, add_action_with_args()
-------------------------+------------------------------
Reporter: rzen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion |
-------------------------+------------------------------
Comment (by rzen):
Replying to [comment:6 TJNowell]:
> My main issue with this is if somebody uses it, and does something like
this ... perhaps you're spanish and that super important text is english
and there's no translation support
I would argue that's an issue with anything an inexperienced dev uses, not
specific to this function. They can pass crummy code and non-localized
strings using add_action and add_filter already. However, you presented an
excellent piece I overlooked: a simple remove_action equivalent for this
function.
What are some other opinions?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22250#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list