Changeset 15843 for trunk/wp-admin/includes/default-list-tables.php
- Timestamp:
- 10/19/2010 07:48:22 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/default-list-tables.php (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/default-list-tables.php
r15842 r15843 86 86 87 87 $per_page = $this->get_items_per_page( 'edit_' . $post_type . '_per_page' ); 88 $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type ); 88 $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type ); 89 89 90 90 if ( $this->hierarchical_display ) … … 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 } … … 736 736 737 737 if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) : 738 $users_opt = array( 739 'name' => 'post_author', 740 'class'=> 'authors', 741 'multi' => 1, 742 'echo' => 0 738 $users_opt = array( 739 'name' => 'post_author', 740 'class'=> 'authors', 741 'multi' => 1, 742 'echo' => 0 743 743 ); 744 744 if ( $bulk ) … … 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 } … … 1678 1678 return $out; 1679 1679 } 1680 1680 1681 1681 function column_description( $tag ) { 1682 1682 return $tag->description; … … 1712 1712 function column_default( $tag, $column_name ) { 1713 1713 global $taxonomy; 1714 1714 1715 1715 return apply_filters( "manage_${taxonomy}_custom_column", '', $column_name, $tag->term_id ); 1716 1716 $out .= "</td>"; … … 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 } … … 1889 1889 <?php 1890 1890 } 1891 1891 1892 1892 function current_action() { 1893 1893 if ( isset($_REQUEST['changeit']) && !empty($_REQUEST['new_role']) ) … … 2564 2564 2565 2565 $this->items = get_bookmarks( $args ); 2566 } 2566 } 2567 2567 2568 2568 function no_items() { … … 2725 2725 } 2726 2726 2727 function check_permissions() { 2727 function check_permissions() { 2728 2728 if ( ! current_user_can( 'manage_sites' ) ) 2729 2729 wp_die( __( 'You do not have permission to access this page.' ) ); … … 3015 3015 if ( !is_multisite() ) 3016 3016 wp_die( __( 'Multisite support is not enabled.' ) ); 3017 3017 3018 3018 if ( ! current_user_can( 'manage_network_users' ) ) 3019 3019 wp_die( __( 'You do not have permission to access this page.' ) ); … … 3046 3046 3047 3047 $this->items = $wp_user_search->get_results(); 3048 3048 3049 3049 $this->set_pagination_args( array( 3050 3050 'total_items' => $wp_user_search->get_total(), 3051 'per_page' => $users_per_page, 3051 'per_page' => $users_per_page, 3052 3052 ) ); 3053 3053 } … … 3368 3368 uasort( $this->items, '_order_plugins_callback' ); 3369 3369 } 3370 3370 3371 3371 $plugins_per_page = $this->get_items_per_page( 'plugins_per_page', 999 ); 3372 3372 … … 3417 3417 function get_views() { 3418 3418 global $totals, $status; 3419 3419 3420 3420 $status_links = array(); 3421 3421 foreach ( $totals as $type => $count ) { … … 3453 3453 } 3454 3454 3455 $status_links[$type] = sprintf( "<li><a href='%s' %s>%s</a>", 3455 $status_links[$type] = sprintf( "<li><a href='%s' %s>%s</a>", 3456 3456 add_query_arg('plugin_status', $type, 'plugins.php'), 3457 3457 ( $type == $status ) ? ' class="current"' : '', … … 3641 3641 function check_permissions() { 3642 3642 if ( ! current_user_can('install_plugins') ) 3643 wp_die(__('You do not have sufficient permissions to install plugins on this site.')); 3643 wp_die(__('You do not have sufficient permissions to install plugins on this site.')); 3644 3644 } 3645 3645 … … 4082 4082 include( ABSPATH . 'wp-admin/includes/theme-install.php' ); 4083 4083 4084 global $tabs, $tab, $paged, $type, $term, $theme_field_defaults; 4085 4084 global $tabs, $tab, $paged, $type, $term, $theme_field_defaults; 4085 4086 4086 wp_reset_vars( array( 'tab' ) ); 4087 4087
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)