diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index f15775c87f..6a63f12a57 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -1058,14 +1058,17 @@ function load_child_theme_textdomain( $domain, $path = false ) { * @return string|false The translated strings in JSON encoding on success, * false if the script textdomain could not be loaded. */ -function load_script_textdomain( $handle, $domain = 'default', $path = null ) { +function load_script_textdomain( $handle, $domain = 'default', $path = '' ) { $wp_scripts = wp_scripts(); if ( ! isset( $wp_scripts->registered[ $handle ] ) ) { return false; } - $path = untrailingslashit( $path ); + if ( is_string( $path ) ) { + $path = untrailingslashit( $path ); + } + $locale = determine_locale(); // If a path was given and the handle file exists simply return it. diff --git a/wp-includes/version.php b/wp-includes/version.php index fe3884d653..b7dbc3490f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta2-54348'; +$wp_version = '6.1-beta2-54349'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.