Changeset 47122 for trunk/src/wp-includes/class-wp-taxonomy.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-taxonomy.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-taxonomy.php
r46743 r47122 284 284 $args = array_merge( $defaults, $args ); 285 285 286 // If not set, default to the setting for public.286 // If not set, default to the setting for 'public'. 287 287 if ( null === $args['publicly_queryable'] ) { 288 288 $args['publicly_queryable'] = $args['public']; … … 296 296 } 297 297 } else { 298 // Force query_varto false for non-public taxonomies.298 // Force 'query_var' to false for non-public taxonomies. 299 299 $args['query_var'] = false; 300 300 } … … 315 315 } 316 316 317 // If not set, default to the setting for public.317 // If not set, default to the setting for 'public'. 318 318 if ( null === $args['show_ui'] ) { 319 319 $args['show_ui'] = $args['public']; 320 320 } 321 321 322 // If not set, default to the setting for show_ui.322 // If not set, default to the setting for 'show_ui'. 323 323 if ( null === $args['show_in_menu'] || ! $args['show_ui'] ) { 324 324 $args['show_in_menu'] = $args['show_ui']; 325 325 } 326 326 327 // If not set, default to the setting for public.327 // If not set, default to the setting for 'public'. 328 328 if ( null === $args['show_in_nav_menus'] ) { 329 329 $args['show_in_nav_menus'] = $args['public']; 330 330 } 331 331 332 // If not set, default to the setting for show_ui.332 // If not set, default to the setting for 'show_ui'. 333 333 if ( null === $args['show_tagcloud'] ) { 334 334 $args['show_tagcloud'] = $args['show_ui']; 335 335 } 336 336 337 // If not set, default to the setting for show_ui.337 // If not set, default to the setting for 'show_ui'. 338 338 if ( null === $args['show_in_quick_edit'] ) { 339 339 $args['show_in_quick_edit'] = $args['show_ui']; … … 352 352 $args['object_type'] = array_unique( (array) $object_type ); 353 353 354 // If not set, use the default meta box 354 // If not set, use the default meta box. 355 355 if ( null === $args['meta_box_cb'] ) { 356 356 if ( $args['hierarchical'] ) {
Note: See TracChangeset
for help on using the changeset viewer.