[wp-trac] [WordPress Trac] #24197: wp_localize_script() doesn't work on admin_enqueue_scripts action
WordPress Trac
noreply at wordpress.org
Tue Apr 30 09:51:26 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: 3.6
Component: General | Version: trunk
Severity: major | Resolution:
Keywords: dev-feedback |
--------------------------+--------------------
Comment (by IcyPixels):
Here's what I basically did:
http://snippi.com/s/8o94pgy
Created a small automatization for Meta box creation, and inside the
"images" case, I leveraged the new Media Uploader. I needed a variable
called icy_ajax which needed to house in different information. Until this
version, 3.6, everything worked just right by localizing it to the jquery
script, now it only works hooking it to the jquery-core script.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24197#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list