[wp-trac] [WordPress Trac] #18016: Running wp_ actions on backend
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 7 01:52:20 UTC 2011
#18016: Running wp_ actions on backend
--------------------------+------------------------------
Reporter: thomask | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2
Severity: normal | Resolution: invalid
Keywords: |
--------------------------+------------------------------
Changes (by kawauso):
* status: reopened => closed
* resolution: => invalid
Comment:
You're meant to pass a function callback to add_action, i.e. add_action(
'wp_head', 'mc_old_jquery' ). Your code is actually executing
mc_old_jquery() when the action is added and attempting to add its non-
existant return value as the callback.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18016#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list