Make WordPress Core

Changeset 16234


Ignore:
Timestamp:
11/08/2010 10:21:34 AM (14 years ago)
Author:
westi
Message:

Fix typo. See #15336 props Utkarsh.
Also actually correctly cast to boolean :-)

File:
1 edited

Legend:

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

    r16232 r16234  
    5555    $current_screen = (object) $_GET['list_args']['screen'];
    5656    //TODO fix this in a better way see #15336
    57     $current_screen['is_network'] = (bool) $current_screen['is_network'];
    58     $current_screen['is_user'] = (bool) $current_screen['is_user'];
    59    
     57    $current_screen->is_network = 'false' === $current_screen->is_network ? false : true;
     58    $current_screen->is_user = 'false' === $current_screen->is_user ? false : true;
     59
    6060    $wp_list_table = get_list_table( $_GET['list_args']['class'] );
    6161    if ( ! $wp_list_table )
Note: See TracChangeset for help on using the changeset viewer.