WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/12/2010 11:21:05 PM (9 years ago)
Author:
scribu
Message:

Introduce WP_List_Table::check_permissions() and WP_List_Table::prepare_items(). Fixes #14596; See #14579

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/sites.php

    r15494 r15496  
    1313    wp_die( __( 'Multisite support is not enabled.' ) );
    1414
    15 if ( ! current_user_can( 'manage_sites' ) )
    16     wp_die( __( 'You do not have permission to access this page.' ) );
     15require_once( '../includes/default-list-tables.php' );
     16
     17$table = new WP_Sites_Table;
     18$table->check_permissions();
    1719
    1820$title = __( 'Sites' );
     
    349351    case 'list':
    350352    default:
    351         require_once( '../includes/default-list-tables.php' );
    352 
    353         $table = new WP_Sites_Table;
     353        $table->prepare_items();
    354354
    355355        require_once( '../admin-header.php' );
Note: See TracChangeset for help on using the changeset viewer.