Changeset 15501
- Timestamp:
- 08/16/2010 01:36:21 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/default-list-tables.php
r15500 r15501 63 63 $avail_post_stati = wp_edit_posts_query(); 64 64 65 $this->hierarchical_display = ( $post_type_object->hierarchical && 0 === strpos( get_query_var( 'orderby' ), 'menu_order' ));65 $this->hierarchical_display = ( $post_type_object->hierarchical && 'menu_order title' == $wp_query->query['orderby'] ); 66 66 67 67 $total_items = $this->hierarchical_display ? $wp_query->post_count : $wp_query->found_posts; -
trunk/wp-includes/query.php
r15471 r15501 1247 1247 if ( !empty($query) || !isset($this->query) ) { 1248 1248 $this->init(); 1249 if ( is_array($query) ) 1250 $this->query_vars = $query; 1251 else 1252 parse_str($query, $this->query_vars); 1253 $this->query = $query; 1249 $this->query = $this->query_vars = wp_parse_args($query); 1254 1250 } 1255 1251
Note: See TracChangeset
for help on using the changeset viewer.