Changeset 35501
- Timestamp:
- 11/04/2015 07:28:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r35500 r35501 108 108 109 109 if ( 'post_type' === $type ) { 110 if ( ! get_post_type_object( $object ) ) { 110 $post_type = get_post_type_object( $object ); 111 if ( ! $post_type ) { 111 112 return new WP_Error( 'nav_menus_invalid_post_type' ); 112 } else {113 $post_type = get_post_type_object( $object );114 113 } 115 114
Note: See TracChangeset
for help on using the changeset viewer.