diff --git a/wp-includes/post.php b/wp-includes/post.php
index e9d9317..8e6ec60 100644
|
a
|
b
|
function register_post_type( $post_type, $args = array() ) { |
| 1352 | 1352 | |
| 1353 | 1353 | // If not set, default to the whether the full UI is shown. |
| 1354 | 1354 | if ( null === $args->show_in_admin_bar ) |
| 1355 | | $args->show_in_admin_bar = true === $args->show_in_menu; |
| | 1355 | $args->show_in_admin_bar = (bool) $args->show_in_menu; |
| 1356 | 1356 | |
| 1357 | 1357 | // If not set, default to the setting for public. |
| 1358 | 1358 | if ( null === $args->show_in_nav_menus ) |