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
This commit is contained in:
Sergey Biryukov 2015-01-07 23:43:24 +00:00
parent f601e45055
commit f2b5ac8ef1
2 changed files with 2 additions and 1 deletions

View File

@ -229,6 +229,7 @@ function wp_can_install_language_pack() {
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
$skin = new Automatic_Upgrader_Skin; $skin = new Automatic_Upgrader_Skin;
$upgrader = new Language_Pack_Upgrader( $skin ); $upgrader = new Language_Pack_Upgrader( $skin );
$upgrader->init();
$check = $upgrader->fs_connect( array( WP_CONTENT_DIR, WP_LANG_DIR ) ); $check = $upgrader->fs_connect( array( WP_CONTENT_DIR, WP_LANG_DIR ) );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.