Changeset 47122 for trunk/src/wp-includes/class-wp-post-type.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-post-type.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-post-type.php
r46586 r47122 424 424 $args['name'] = $this->name; 425 425 426 // If not set, default to the setting for public.426 // If not set, default to the setting for 'public'. 427 427 if ( null === $args['publicly_queryable'] ) { 428 428 $args['publicly_queryable'] = $args['public']; 429 429 } 430 430 431 // If not set, default to the setting for public.431 // If not set, default to the setting for 'public'. 432 432 if ( null === $args['show_ui'] ) { 433 433 $args['show_ui'] = $args['public']; 434 434 } 435 435 436 // If not set, default to the setting for show_ui.436 // If not set, default to the setting for 'show_ui'. 437 437 if ( null === $args['show_in_menu'] || ! $args['show_ui'] ) { 438 438 $args['show_in_menu'] = $args['show_ui']; 439 439 } 440 440 441 // If not set, default to the whether the full UI is shown.441 // If not set, default to the setting for 'show_in_menu'. 442 442 if ( null === $args['show_in_admin_bar'] ) { 443 443 $args['show_in_admin_bar'] = (bool) $args['show_in_menu']; 444 444 } 445 445 446 // If not set, default to the setting for public.446 // If not set, default to the setting for 'public'. 447 447 if ( null === $args['show_in_nav_menus'] ) { 448 448 $args['show_in_nav_menus'] = $args['public'];
Note: See TracChangeset
for help on using the changeset viewer.