WordPress.org

Make WordPress Core

Changeset 32124


Ignore:
Timestamp:
04/14/2015 03:12:49 PM (5 years ago)
Author:
wonderboymusic
Message:

Revert [31030] and [31033]. Incidentally, there is no lazy-loading happening here anyway.

Pushing #26111 to future.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r31223 r32124  
    164164        $tag = "{$cond_before}<script type='text/javascript' src='$src'></script>\n{$cond_after}";
    165165
    166         /**
     166        /** 
    167167         * Filter the HTML script tag of an enqueued script.
    168168         *
     
    193193            $handle = 'jquery-core';
    194194
    195         if ( is_callable( $l10n ) ) {
    196             $l10n = call_user_func( $l10n, $handle, $object_name );
    197         }
    198 
    199195        if ( is_array($l10n) && isset($l10n['l10n_print_after']) ) { // back compat, preserve the code in 'l10n_print_after' if present
    200196            $after = $l10n['l10n_print_after'];
  • trunk/src/wp-includes/functions.wp-scripts.php

    r32040 r32124  
    139139 * @todo Documentation cleanup
    140140 *
    141  * @param string         $handle       Script handle the data will be attached to.
    142  * @param string         $object_name  Name for the JavaScript object. Passed directly, so it should be qualified JS variable.
    143  *                                     Example: '/[a-zA-Z0-9_]+/'.
    144  * @param array|callable $l10n         The data itself. The data can be either a single or multi-dimensional array. If a callable
    145  *                                     is passed, it will be invoked at runtime.
     141 * @param string $handle      Script handle the data will be attached to.
     142 * @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable.
     143 *                            Example: '/[a-zA-Z0-9_]+/'.
     144 * @param array $l10n         The data itself. The data can be either a single or multi-dimensional array.
    146145 * @return bool True if the script was successfully localized, false otherwise.
    147146 */
Note: See TracChangeset for help on using the changeset viewer.