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:
parent
6ebf93b9f8
commit
c2dcaa35b3
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue