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:
Sergey Biryukov 2014-10-12 13:06:19 +00:00
parent 3a8676278d
commit e5d518abee
1 changed files with 4 additions and 0 deletions

View File

@ -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(),