mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Fix notice in plugin installer. See #9365 props sivel
git-svn-id: http://svn.automattic.com/wordpress/trunk@10820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
015c9e542e
commit
842c0927ef
@ -418,11 +418,13 @@ function install_plugin_information() {
|
|||||||
$type = 'install';
|
$type = 'install';
|
||||||
//Check to see if this plugin is known to be installed, and has an update awaiting it.
|
//Check to see if this plugin is known to be installed, and has an update awaiting it.
|
||||||
$update_plugins = get_option('update_plugins');
|
$update_plugins = get_option('update_plugins');
|
||||||
foreach ( (array)$update_plugins->response as $file => $plugin ) {
|
if ( is_object( $update_plugins ) ) {
|
||||||
if ( $plugin->slug === $api->slug ) {
|
foreach ( (array)$update_plugins->response as $file => $plugin ) {
|
||||||
$type = 'update_available';
|
if ( $plugin->slug === $api->slug ) {
|
||||||
$update_file = $file;
|
$type = 'update_available';
|
||||||
break;
|
$update_file = $file;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( 'install' == $type && is_dir( WP_PLUGIN_DIR . '/' . $api->slug ) ) {
|
if ( 'install' == $type && is_dir( WP_PLUGIN_DIR . '/' . $api->slug ) ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user