[wp-trac] [WordPress Trac] #24197: wp_localize_script() doesn't work on admin_enqueue_scripts action

WordPress Trac noreply at wordpress.org
Thu Apr 25 20:23:59 UTC 2013


#24197: wp_localize_script() doesn't work on admin_enqueue_scripts action
--------------------------+-------------------------------------
 Reporter:  IcyPixels     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  major         |   Keywords:  needs-patch 2nd-opinion
--------------------------+-------------------------------------
 Here's another odd bug introduced by WP 3.6 latest development version.

 I'm using the following code: [http://snippi.com/s/s058ms7]

 In WP 3.5.1 everything worked as it should, and wp_localize_script
 returned the "icy_ajax".

 Now, in 3.6-beta1-24067 , I get the following error in my console:
 ReferenceError: icy_ajax is not defined

 Just try and test it and let me know of any solution :-)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24197>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list