[wp-trac] [WordPress Trac] #26111: wp_localize_script array from callback for performance

WordPress Trac noreply at wordpress.org
Sat Jan 3 05:12:58 UTC 2015


#26111: wp_localize_script array from callback for performance
-----------------------------------+-----------------------------
 Reporter:  ciantic                |       Owner:  wonderboymusic
     Type:  enhancement            |      Status:  closed
 Priority:  low                    |   Milestone:  4.2
Component:  Script Loader          |     Version:  2.6
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch 2nd-opinion  |     Focuses:  performance
-----------------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"31033"]:
 {{{
 #!CommitTicketReference repository="" revision="31033"
 After [31030]: if a `callable` is passed as the 3rd arg to
 `wp_localize_script()/WP_Scripts->localize()`, pass `$handle` and
 `$object_name` to the user func when invoking it.

 Props jtsternberg.
 Fixes #26111.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26111#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list