WordPress.org

Make WordPress Core

Ticket #43781: 43781.diff

File 43781.diff, 600 bytes (added by sebastien@…, 19 months ago)
  • wp-includes/functions.wp-scripts.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    192192                return false;
    193193        }
    194194
    195         return $wp_scripts->localize( $handle, $object_name, $l10n );
     195        $scripts = apply_filters('wp_localize_scripts', $wp_scripts->localize( $handle, $object_name, $l10n ), $handle, $object_name, $l10n);
     196       
     197        return $scripts;
    196198}
    197199
    198200/**