Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -381,7 +381,7 @@ class WP_REST_Plugins_Controller extends WP_REST_Controller {
|
||||
$installed_locales = apply_filters( 'plugins_update_check_locales', $installed_locales );
|
||||
|
||||
$language_packs = array_map(
|
||||
static function( $item ) {
|
||||
static function ( $item ) {
|
||||
return (object) $item;
|
||||
},
|
||||
$api->language_packs
|
||||
@@ -389,7 +389,7 @@ class WP_REST_Plugins_Controller extends WP_REST_Controller {
|
||||
|
||||
$language_packs = array_filter(
|
||||
$language_packs,
|
||||
static function( $pack ) use ( $installed_locales ) {
|
||||
static function ( $pack ) use ( $installed_locales ) {
|
||||
return in_array( $pack->language, $installed_locales, true );
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user