WordPress.org

Make WordPress Core

Changeset 44318


Ignore:
Timestamp:
12/19/2018 12:17:25 AM (11 months ago)
Author:
SergeyBiryukov
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.

Props dimadin.
Merges [44288] to trunk.
See #45528.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/l10n.php

    r44317 r44318  
    926926    }
    927927
    928     $obj = $wp_scripts->registered[ $handle ];
    929 
    930     $src = $obj->src;
     928    $src = $wp_scripts->registered[ $handle ]->src;
     929
    931930    if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $wp_scripts->content_url && 0 === strpos( $src, $wp_scripts->content_url ) ) ) {
    932931        $src = $wp_scripts->base_url . $src;
    933932    }
    934     /** This filter is documented in wp-includes/class.wp-scripts.php */
    935     $src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) );
    936933
    937934    $relative       = false;
Note: See TracChangeset for help on using the changeset viewer.