Changeset 15904 for trunk/wp-admin/includes/default-list-tables.php
- Timestamp:
- 10/21/2010 07:55:28 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/default-list-tables.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/default-list-tables.php
r15903 r15904 162 162 $status_links[$status_name] = "<li><a href='edit.php?post_status=$status_name&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>'; 163 163 } 164 164 165 165 return $status_links; 166 166 } … … 999 999 if ( !current_user_can('upload_files') ) 1000 1000 wp_die( __( 'You do not have permission to upload files.' ) ); 1001 } 1001 } 1002 1002 1003 1003 function prepare_items() { … … 1489 1489 1490 1490 $this->callback_args = $args; 1491 1491 1492 1492 $this->set_pagination_args( array( 1493 1493 'total_items' => wp_count_terms( $taxonomy, compact( 'search' ) ), 1494 'per_page' => $tags_per_page, 1494 'per_page' => $tags_per_page, 1495 1495 ) ); 1496 1496 } … … 1821 1821 1822 1822 $this->items = $wp_user_search->get_results(); 1823 1823 1824 1824 $this->set_pagination_args( array( 1825 1825 'total_items' => $wp_user_search->get_total(), 1826 'per_page' => $users_per_page, 1826 'per_page' => $users_per_page, 1827 1827 ) ); 1828 1828 } … … 2567 2567 2568 2568 $this->items = get_bookmarks( $args ); 2569 } 2569 } 2570 2570 2571 2571 function no_items() { … … 2728 2728 } 2729 2729 2730 function check_permissions() { 2730 function check_permissions() { 2731 2731 if ( ! current_user_can( 'manage_sites' ) ) 2732 2732 wp_die( __( 'You do not have permission to access this page.' ) ); … … 3049 3049 3050 3050 $this->items = $wp_user_search->get_results(); 3051 3051 3052 3052 $this->set_pagination_args( array( 3053 3053 'total_items' => $wp_user_search->get_total(), 3054 'per_page' => $users_per_page, 3054 'per_page' => $users_per_page, 3055 3055 ) ); 3056 3056 } … … 3372 3372 uasort( $this->items, '_order_plugins_callback' ); 3373 3373 } 3374 3374 3375 3375 $plugins_per_page = $this->get_items_per_page( 'plugins_per_page', 999 ); 3376 3376 … … 3645 3645 function check_permissions() { 3646 3646 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.')); 3648 3648 } 3649 3649 … … 4086 4086 include( ABSPATH . 'wp-admin/includes/theme-install.php' ); 4087 4087 4088 global $tabs, $tab, $paged, $type, $term, $theme_field_defaults; 4089 4088 global $tabs, $tab, $paged, $type, $term, $theme_field_defaults; 4089 4090 4090 wp_reset_vars( array( 'tab' ) ); 4091 4091
Note: See TracChangeset
for help on using the changeset viewer.