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

WordPress Trac noreply at wordpress.org
Wed Jul 10 05:34:50 UTC 2013


#24197: wp_localize_script() doesn't work for jquery handle
--------------------------+--------------------
 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 nacin):

 Good work here, but I think we can go about this much simpler for 3.6.
 [http://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 dev&day=2013-07-10&sort=asc#m639344 From IRC]:

 {{{
 1:29    nacin   azaozz: for 3.6, that seems to be good, right?
 1:29    azaozz  we may need to support localization on other aliases
 1:29    nacin   azaozz: in the future if jquery becomes the main handle
 again and jquery-core is an alias, we can swap it.
 1:30    nacin   azaozz: we didn't add any other aliases in 3.6, though.
 this is the one we're worried about breaking.
 1:30    azaozz  right
 1:30    nacin   in fact we have only four aliases total
 1:31    nacin   jquery, plupload-all, swfupload-all, and scriptaculous
 1:31    nacin   (based on a quick `scripts..add\(.*false.*array` regexp)
 1:31    azaozz  yeah.
 1:33    nacin   azaozz: so let's just do that
 }}}

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


More information about the wp-trac mailing list