diff --git src/wp-includes/class-wp-customize-nav-menus.php src/wp-includes/class-wp-customize-nav-menus.php
index 28e8196917..955ce1a82f 100644
|
|
final class WP_Customize_Nav_Menus { |
786 | 786 | * @return WP_Post|WP_Error Inserted auto-draft post object or error. |
787 | 787 | */ |
788 | 788 | public function insert_auto_draft_post( $postarr ) { |
789 | | if ( ! isset( $postarr['post_type'] ) || ! post_type_exists( $postarr['post_type'] ) ) { |
| 789 | if ( ! isset( $postarr['post_type'] ) ) { |
790 | 790 | return new WP_Error( 'unknown_post_type', __( 'Invalid post type.' ) ); |
791 | 791 | } |
792 | 792 | if ( empty( $postarr['post_title'] ) ) { |