WordPress.org

Make WordPress Core

Ticket #7613: 7613.2.diff

File 7613.2.diff, 404 bytes (added by caesarsgrunt, 10 years ago)

Patch which checks isset and !empty to avoid notices.

  • wp-admin/plugins.php

     
    1717        }
    1818}
    1919
    20 if( isset($_REQUEST['action']) )
     20if( isset($_REQUEST['action']) && !empty($_REQUEST['action']) )
    2121        $action = $_REQUEST['action'];
    2222
    2323$plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : '';