diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index e83706df66..f3dbc282bb 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -725,12 +725,14 @@ function load_textdomain( $domain, $mofile, $locale = null ) { * Filters whether to override the .mo file loading. * * @since 2.9.0 + * @since 6.2.0 Added the `$locale` parameter. * - * @param bool $override Whether to override the .mo file loading. Default false. - * @param string $domain Text domain. Unique identifier for retrieving translated strings. - * @param string $mofile Path to the MO file. + * @param bool $override Whether to override the .mo file loading. Default false. + * @param string $domain Text domain. Unique identifier for retrieving translated strings. + * @param string $mofile Path to the MO file. + * @param string|null $locale Locale. */ - $plugin_override = apply_filters( 'override_load_textdomain', false, $domain, $mofile ); + $plugin_override = apply_filters( 'override_load_textdomain', false, $domain, $mofile, $locale ); if ( true === (bool) $plugin_override ) { unset( $l10n_unloaded[ $domain ] ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 5d3eeeba43..a9d3e474e5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55195'; +$wp_version = '6.2-alpha-55196'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.