Make WordPress Core


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

    r15491 r15496  
    1010require_once ('admin.php');
    1111
     12require_once( './includes/default-list-tables.php' );
     13
     14$table = new WP_Links_Table;
     15$table->check_permissions();
     16
    1217// Handle bulk deletes
    1318if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['linkcheck'] ) ) {
     
    1520
    1621    $doaction = $_REQUEST['action'] ? $_REQUEST['action'] : $_REQUEST['action2'];
    17 
    18     if ( ! current_user_can( 'manage_links' ) )
    19         wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
    2022
    2123    if ( 'delete' == $doaction ) {
     
    3436}
    3537
    36 require_once( './includes/default-list-tables.php' );
    37 
    38 $table = new WP_Links_Table;
     38$table->prepare_items();
    3939
    4040$title = __('Links');
Note: See TracChangeset for help on using the changeset viewer.