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.


Built from https://develop.svn.wordpress.org/branches/5.0@44288


git-svn-id: http://core.svn.wordpress.org/branches/5.0@44118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2018-12-18 11:08:45 +00:00
parent 6ebf93b9f8
commit c2dcaa35b3
2 changed files with 2 additions and 5 deletions

View File

@ -901,14 +901,11 @@ function load_script_textdomain( $handle, $domain, $path = null ) {
return load_script_translations( $path . '/' . $handle_filename, $handle, $domain );
}
$obj = $wp_scripts->registered[ $handle ];
$src = $wp_scripts->registered[ $handle ]->src;
$src = $obj->src;
if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $wp_scripts->content_url && 0 === strpos( $src, $wp_scripts->content_url ) ) ) {
$src = $wp_scripts->base_url . $src;
}
/** This filter is documented in wp-includes/class.wp-scripts.php */
$src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) );
$relative = false;
$languages_path = WP_LANG_DIR;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0.2-RC1-44287';
$wp_version = '5.0.2-RC1-44288';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.