Make WordPress Core

Changeset 29882


Ignore:
Timestamp:
10/12/2014 01:05:55 PM (12 years ago)
Author:
SergeyBiryukov
Message:

Avoid PHP notices if 'plugin' is not set for tab=plugin-information.

props avryl.
fixes #29936.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r29829 r29882  
    326326function install_plugin_information() {
    327327        global $tab;
     328
     329        if ( empty( $_REQUEST['plugin'] ) ) {
     330                return;
     331        }
    328332
    329333        $api = plugins_api( 'plugin_information', array(
Note: See TracChangeset for help on using the changeset viewer.