From e5d518abee4b25c109724fb899e9ad0ea68b6312 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 12 Oct 2014 13:06:19 +0000 Subject: [PATCH] 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 --- wp-admin/includes/plugin-install.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index 65e01945c8..4f1285a73d 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -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(),