From f2b5ac8ef1709de1286641d61cf9f593f15bcd1f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 7 Jan 2015 23:43:24 +0000 Subject: [PATCH] Call the init() method for the upgrader in wp_can_install_language_pack() to avoid undefined index notices. props ocean90. fixes #30827 for trunk. Built from https://develop.svn.wordpress.org/trunk@31074 git-svn-id: http://core.svn.wordpress.org/trunk@31055 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/translation-install.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/translation-install.php b/wp-admin/includes/translation-install.php index f3cc370ac4..66eb77ff56 100644 --- a/wp-admin/includes/translation-install.php +++ b/wp-admin/includes/translation-install.php @@ -229,6 +229,7 @@ function wp_can_install_language_pack() { require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $skin = new Automatic_Upgrader_Skin; $upgrader = new Language_Pack_Upgrader( $skin ); + $upgrader->init(); $check = $upgrader->fs_connect( array( WP_CONTENT_DIR, WP_LANG_DIR ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 14e0c6a0d7..336898b3b0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31073'; +$wp_version = '4.2-alpha-31074'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.