WordPress.org

Make WordPress Core

Changeset 16118


Ignore:
Timestamp:
10/31/2010 01:52:35 PM (8 years ago)
Author:
scribu
Message:

Set $current_screen before creating list table. Props rovo89. See #14579

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r16105 r16118  
    5353case 'fetch-list' :
    5454
     55    $current_screen = (object) $_GET['list_args']['screen'];
    5556    $wp_list_table = get_list_table( $_GET['list_args']['class'] );
    5657    if ( ! $wp_list_table )
    5758        die( '0' );
    5859
    59     $current_screen = (object) $_GET['list_args']['screen'];
    6060    $wp_list_table->ajax_response();
    6161
Note: See TracChangeset for help on using the changeset viewer.