Changeset 14155 for trunk/wp-admin/includes/post.php
- Timestamp:
- 04/18/2010 03:54:45 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/post.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r14147 r14155 269 269 if ( empty($terms) ) 270 270 continue; 271 $taxonomy = get_taxonomy( $tax_name ); 272 if ( $taxonomy->hierarchical ) 271 if ( is_taxonomy_hierarchical( $tax_name ) ) 273 272 $tax_input[$tax_name] = array_map( 'absint', $terms ); 274 273 else { … … 317 316 foreach ( $tax_names as $tax_name ) { 318 317 if( isset( $tax_input[$tax_name]) ) { 319 $taxonomy = get_taxonomy( $tax_name ); 320 if( $taxonomy->hierarchical ) 318 if ( is_taxonomy_hierarchical( $tax_name ) ) 321 319 $terms = (array) wp_get_object_terms( $post_ID, $tax_name, array('fields' => 'ids') ); 322 320 else … … 862 860 else 863 861 $post_type = 'post'; 864 $post_type_object = get_post_type_object($post_type);865 862 866 863 $avail_post_stati = get_available_post_statuses($post_type); … … 892 889 893 890 // Hierarchical types require special args. 894 if ( $post_type_object->hierarchical) {891 if ( is_post_type_hierarchical( $post_type ) ) { 895 892 $query['orderby'] = 'menu_order title'; 896 893 $query['order'] = 'asc';
Note: See TracChangeset
for help on using the changeset viewer.