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.

Built from https://develop.svn.wordpress.org/trunk@31030


git-svn-id: http://core.svn.wordpress.org/trunk@31011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor
2015-01-03 03:54:22 +00:00
parent 618c5b4333
commit e649887e40
3 changed files with 11 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31029';
$wp_version = '4.2-alpha-31030';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.