diff --git a/wp-includes/class-wp-textdomain-registry.php b/wp-includes/class-wp-textdomain-registry.php index 8ff8ad0ae2..54f5f15c4d 100644 --- a/wp-includes/class-wp-textdomain-registry.php +++ b/wp-includes/class-wp-textdomain-registry.php @@ -228,7 +228,11 @@ class WP_Textdomain_Registry { * @return void */ public function invalidate_mo_files_cache( $upgrader, $hook_extra ) { - if ( 'translation' !== $hook_extra['type'] || array() === $hook_extra['translations'] ) { + if ( + ! isset( $hook_extra['type'] ) || + 'translation' !== $hook_extra['type'] || + array() === $hook_extra['translations'] + ) { return; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 4aa979d68e..296dbb7711 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57302'; +$wp_version = '6.5-alpha-57303'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.