Make WordPress Core


Ignore:
Timestamp:
08/12/2010 11:21:05 PM (11 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/users.php

    r15494 r15496  
    1010require_once( './admin.php' );
    1111
    12 if ( !is_multisite() )
    13     wp_die( __( 'Multisite support is not enabled.' ) );
     12require_once( '../includes/default-list-tables.php' );
    1413
    15 if ( ! current_user_can( 'manage_network_users' ) )
    16     wp_die( __( 'You do not have permission to access this page.' ) );
     14$table = new WP_MS_Users_Table;
     15$table->check_permissions();
     16$table->prepare_items();
    1717
    1818$title = __( 'Users' );
     
    3232    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    3333);
    34 
    35 require_once( '../includes/default-list-tables.php' );
    36 
    37 $table = new WP_MS_Users_Table;
    3834
    3935require_once( '../admin-header.php' );
Note: See TracChangeset for help on using the changeset viewer.