WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/18/2018 11:07:46 AM (10 months ago)
Author:
pento
Message:

i18n: Remove the script_loader_src filter from load_script_textdomain().

This filter is superfluous here, the load_script_textdomain_relative_path should be used for customising the textdomain path.

See #45528.
Props dimadin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/l10n.php

    r44284 r44288  
    902902    }
    903903
    904     $obj = $wp_scripts->registered[ $handle ];
    905 
    906     $src = $obj->src;
     904    $src = $wp_scripts->registered[ $handle ]->src;
     905
    907906    if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $wp_scripts->content_url && 0 === strpos( $src, $wp_scripts->content_url ) ) ) {
    908907        $src = $wp_scripts->base_url . $src;
    909908    }
    910     /** This filter is documented in wp-includes/class.wp-scripts.php */
    911     $src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) );
    912909
    913910    $relative       = false;
Note: See TracChangeset for help on using the changeset viewer.