Do not show 'Network Activate' link if update fails. Props ocean90. fixes #13596

git-svn-id: http://svn.automattic.com/wordpress/trunk@15038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-05-28 16:42:09 +00:00
parent 58d8b1383d
commit 2d10d9377a
1 changed files with 3 additions and 2 deletions

View File

@ -1281,9 +1281,10 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
$install_actions['plugins_page'] = '<a href="' . admin_url('plugins.php') . '" title="' . esc_attr__('Return to Plugins page') . '" target="_parent">' . __('Return to Plugins page') . '</a>';
if ( ! $this->result || is_wp_error($this->result) )
if ( ! $this->result || is_wp_error($this->result) ) {
unset( $install_actions['activate_plugin'] );
unset( $install_actions['network_activate'] );
}
$install_actions = apply_filters('install_plugin_complete_actions', $install_actions, $this->api, $plugin_file);
if ( ! empty($install_actions) )
$this->feedback('<strong>' . __('Actions:') . '</strong> ' . implode(' | ', (array)$install_actions));