[wp-trac] [WordPress Trac] #26111: wp_localize_script array from callback for performance
WordPress Trac
noreply at wordpress.org
Sat Jan 3 03:53:31 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 | Focuses: performance
---------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"31030"]:
{{{
#!CommitTicketReference repository="" revision="31030"
Allow the 3rd argument to `wp_localize_script()/WP_Scripts->localize()` to
be a `callable`, allowing data to be lazy-loaded when the script is
actually enqueued.
Props jtsternberg.
Fixes #26111.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26111#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list