WordPress.org

Make WordPress Core

Ticket #22570: 22570.diff

File 22570.diff, 537 bytes (added by nacin, 3 years ago)
  • wp-admin/includes/list-table.php

     
    4343 
    4444                if ( isset( $args['screen'] ) ) 
    4545                        $args['screen'] = convert_to_screen( $args['screen'] ); 
     46                elseif( isset( $GLOBALS['hook_suffix'] ) ) 
     47                        $args['screen'] = get_current_screen(); 
    4648                else 
    47                         $args['screen'] = get_current_screen(); 
     49                        $args['screen'] = null; 
    4850 
    4951                return new $class( $args ); 
    5052        }