[wp-trac] [WordPress Trac] #24197: wp_localize_script() doesn't work for jquery handle

WordPress Trac noreply at wordpress.org
Wed Jul 10 05:44:26 UTC 2013


#24197: wp_localize_script() doesn't work for jquery handle
--------------------------+---------------------
 Reporter:  IcyPixels     |       Owner:  nacin
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.6
Component:  General       |     Version:  trunk
 Severity:  major         |  Resolution:  fixed
 Keywords:  dev-feedback  |
--------------------------+---------------------

Comment (by nacin):

 _doing_it_wrong() was considered, but is left out of 3.6 for now:

 1:41    <azaozz>        nacin: what text for the _doing_it_wrong:
 "Localization data should be added only to scripts enqueued by your
 plugin."
 1:42    <nacin> azaozz: I thought about it but didn't care much for 3.6,
 because the message is going to be kind of vague and probably confusing
 1:42    <nacin> attaching to 'jquery' is unexpected and stupid, but not
 inherently "wrong", and it'd likely confuse people
 1:42    <azaozz>        that's true too
 1:43    <azaozz>        ok, no _doing_it_wrong

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


More information about the wp-trac mailing list