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:
parent
f601e45055
commit
f2b5ac8ef1
|
@ -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 ) );
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue