Make WordPress Core


Ignore:
Timestamp:
10/21/2010 07:55:28 PM (15 years ago)
Author:
nacin
Message:

Pruning shears.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/default-list-tables.php

    r15903 r15904  
    162162            $status_links[$status_name] = "<li><a href='edit.php?post_status=$status_name&amp;post_type=$post_type'$class>" . sprintf( _n( $status->label_count[0], $status->label_count[1], $num_posts->$status_name ), number_format_i18n( $num_posts->$status_name ) ) . '</a>';
    163163        }
    164    
     164
    165165        return $status_links;
    166166    }
     
    999999        if ( !current_user_can('upload_files') )
    10001000            wp_die( __( 'You do not have permission to upload files.' ) );
    1001     }   
     1001    }
    10021002
    10031003    function prepare_items() {
     
    14891489
    14901490        $this->callback_args = $args;
    1491    
     1491
    14921492        $this->set_pagination_args( array(
    14931493            'total_items' => wp_count_terms( $taxonomy, compact( 'search' ) ),
    1494             'per_page' => $tags_per_page,   
     1494            'per_page' => $tags_per_page,
    14951495        ) );
    14961496    }
     
    18211821
    18221822        $this->items = $wp_user_search->get_results();
    1823    
     1823
    18241824        $this->set_pagination_args( array(
    18251825            'total_items' => $wp_user_search->get_total(),
    1826             'per_page' => $users_per_page, 
     1826            'per_page' => $users_per_page,
    18271827        ) );
    18281828    }
     
    25672567
    25682568        $this->items = get_bookmarks( $args );
    2569     }   
     2569    }
    25702570
    25712571    function no_items() {
     
    27282728    }
    27292729
    2730     function check_permissions() { 
     2730    function check_permissions() {
    27312731        if ( ! current_user_can( 'manage_sites' ) )
    27322732            wp_die( __( 'You do not have permission to access this page.' ) );
     
    30493049
    30503050        $this->items = $wp_user_search->get_results();
    3051    
     3051
    30523052        $this->set_pagination_args( array(
    30533053            'total_items' => $wp_user_search->get_total(),
    3054             'per_page' => $users_per_page, 
     3054            'per_page' => $users_per_page,
    30553055        ) );
    30563056    }
     
    33723372            uasort( $this->items, '_order_plugins_callback' );
    33733373        }
    3374    
     3374
    33753375        $plugins_per_page = $this->get_items_per_page( 'plugins_per_page', 999 );
    33763376
     
    36453645    function check_permissions() {
    36463646        if ( ! current_user_can('install_plugins') )
    3647             wp_die(__('You do not have sufficient permissions to install plugins on this site.')); 
     3647            wp_die(__('You do not have sufficient permissions to install plugins on this site.'));
    36483648    }
    36493649
     
    40864086        include( ABSPATH . 'wp-admin/includes/theme-install.php' );
    40874087
    4088         global $tabs, $tab, $paged, $type, $term, $theme_field_defaults;   
    4089    
     4088        global $tabs, $tab, $paged, $type, $term, $theme_field_defaults;
     4089
    40904090        wp_reset_vars( array( 'tab' ) );
    40914091
Note: See TracChangeset for help on using the changeset viewer.