[wp-trac] [WordPress Trac] #18016: Running wp_ actions on backend

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 7 01:12:34 UTC 2011


#18016: Running wp_ actions on backend
--------------------------+------------------------------
 Reporter:  thomask       |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by thomask):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Upss, back again - wp_head definitely run in the admin. This is my code
 (downgrading the jquery version) - should be just on frontend but is on
 backend as well

 {{{
 function mc_old_jquery($version) {
   wp_deregister_script('jquery');
   wp_register_script('jquery',
 'http://ajax.googleapis.com/ajax/libs/jquery/'.$version.'/jquery.min.js',
   false, $version);
 }
 add_action( 'wp_head', mc_old_jquery( '1.4.4' ) );
 }}}

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


More information about the wp-trac mailing list