Changeset 19192
- Timestamp:
- 11/06/2011 09:14:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-posts-list-table.php
r19054 r19192 47 47 48 48 function __construct() { 49 global $post_type_object, $ post_type, $wpdb;49 global $post_type_object, $wpdb; 50 50 51 51 if ( !isset( $_REQUEST['post_type'] ) ) … … 87 87 88 88 function prepare_items() { 89 global $post_type_object, $ post_type, $avail_post_stati, $wp_query, $per_page, $mode;89 global $post_type_object, $avail_post_stati, $wp_query, $per_page, $mode; 90 90 91 91 $avail_post_stati = wp_edit_posts_query(); … … 95 95 $total_items = $this->hierarchical_display ? $wp_query->post_count : $wp_query->found_posts; 96 96 97 $post_type = $post_type_object->name; 97 98 $per_page = $this->get_items_per_page( 'edit_' . $post_type . '_per_page' ); 98 99 $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type ); … … 128 129 129 130 function get_views() { 130 global $post_type, $post_type_object, $locked_post_status, $avail_post_stati; 131 global $post_type_object, $locked_post_status, $avail_post_stati; 132 133 $post_type = $post_type_object->name; 131 134 132 135 if ( !empty($locked_post_status) ) … … 203 206 204 207 function extra_tablenav( $which ) { 205 global $post_type , $post_type_object, $cat;208 global $post_type_object, $cat; 206 209 ?> 207 210 <div class="alignleft actions"> … … 209 212 if ( 'top' == $which && !is_singular() ) { 210 213 211 $this->months_dropdown( $post_type );212 213 if ( is_object_in_taxonomy( $post_type , 'category' ) ) {214 $this->months_dropdown( $post_type_object->name ); 215 216 if ( is_object_in_taxonomy( $post_type_object->name, 'category' ) ) { 214 217 $dropdown_options = array( 215 218 'show_option_all' => __( 'View all categories' ),
Note: See TracChangeset
for help on using the changeset viewer.