Avoid PHP notices if 'plugin' is not set for tab=plugin-information.
props avryl. fixes #29936. git-svn-id: https://develop.svn.wordpress.org/trunk@29882 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7fc02a2abd
commit
9f8e03c390
@ -326,6 +326,10 @@ function install_plugin_install_status($api, $loop = false) {
|
||||
function install_plugin_information() {
|
||||
global $tab;
|
||||
|
||||
if ( empty( $_REQUEST['plugin'] ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$api = plugins_api( 'plugin_information', array(
|
||||
'slug' => wp_unslash( $_REQUEST['plugin'] ),
|
||||
'is_ssl' => is_ssl(),
|
||||
|
Loading…
Reference in New Issue
Block a user