Avoid PHP notices if 'plugin' is not set for tab=plugin-information.
props avryl. fixes #29936. Built from https://develop.svn.wordpress.org/trunk@29882 git-svn-id: http://core.svn.wordpress.org/trunk@29638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3a8676278d
commit
e5d518abee
|
@ -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