Changeset 42343 for trunk/src/wp-includes/class-wp-taxonomy.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-taxonomy.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-taxonomy.php
r42211 r42343 297 297 298 298 if ( false !== $args['rewrite'] && ( is_admin() || '' != get_option( 'permalink_structure' ) ) ) { 299 $args['rewrite'] = wp_parse_args( $args['rewrite'], array( 300 'with_front' => true, 301 'hierarchical' => false, 302 'ep_mask' => EP_NONE, 303 ) ); 299 $args['rewrite'] = wp_parse_args( 300 $args['rewrite'], array( 301 'with_front' => true, 302 'hierarchical' => false, 303 'ep_mask' => EP_NONE, 304 ) 305 ); 304 306 305 307 if ( empty( $args['rewrite']['slug'] ) ) { … … 359 361 if ( null === $args['meta_box_sanitize_cb'] ) { 360 362 switch ( $args['meta_box_cb'] ) { 361 case 'post_categories_meta_box' :363 case 'post_categories_meta_box': 362 364 $args['meta_box_sanitize_cb'] = 'taxonomy_meta_box_sanitize_cb_checkboxes'; 363 break;364 365 case 'post_tags_meta_box' :366 default :365 break; 366 367 case 'post_tags_meta_box': 368 default: 367 369 $args['meta_box_sanitize_cb'] = 'taxonomy_meta_box_sanitize_cb_input'; 368 break;370 break; 369 371 } 370 372 } … … 375 377 376 378 $this->labels = get_taxonomy_labels( $this ); 377 $this->label = $this->labels->name;379 $this->label = $this->labels->name; 378 380 } 379 381
Note: See TracChangeset
for help on using the changeset viewer.