WordPress.org

Make WordPress Core

Changeset 31033


Ignore:
Timestamp:
01/03/15 05:12:56 (2 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class.wp-scripts.php

    r31032 r31033  
    179179 
    180180        if ( is_callable( $l10n ) ) { 
    181             $l10n = call_user_func( $l10n ); 
     181            $l10n = call_user_func( $l10n, $handle, $object_name ); 
    182182        } 
    183183 
Note: See TracChangeset for help on using the changeset viewer.