Call the init() method for the upgrader in wp_can_install_language_pack() to avoid undefined index notices.
props ocean90. fixes #30827 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@31074 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dd05a3a40f
commit
ca34257bd6
@ -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 ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user