Changeset 35302 for trunk/src/wp-includes/class-wp-customize-setting.php
- Timestamp:
- 10/20/2015 07:07:58 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-setting.php
r35007 r35302 886 886 'original_title' => '', 887 887 'nav_menu_term_id' => 0, // This will be supplied as the $menu_id arg for wp_update_nav_menu_item(). 888 // @todo also expose invalid?888 '_invalid' => false, 889 889 ); 890 890 … … 1143 1143 $this->value[ $key ] = intval( $this->value[ $key ] ); 1144 1144 } 1145 } 1146 1147 if ( ! isset( $this->value['_invalid'] ) ) { 1148 $this->value['_invalid'] = ( 1149 ( 'post_type' === $this->value['type'] && ! post_type_exists( $this->value['object'] ) ) 1150 || 1151 ( 'taxonomy' === $this->value['type'] && ! taxonomy_exists( $this->value['object'] ) ) 1152 ); 1145 1153 } 1146 1154 … … 1247 1255 false === $this_item 1248 1256 || 1257 true === $this_item['_invalid'] 1258 || 1249 1259 ( 1250 1260 $this->original_nav_menu_term_id === $menu->term_id … … 1418 1428 'original_title' => '', 1419 1429 'nav_menu_term_id' => 0, 1430 '_invalid' => false, 1420 1431 ); 1421 1432 $menu_item_value = array_merge( $default, $menu_item_value ); … … 1449 1460 $menu_item_value['status'] = 'publish'; 1450 1461 } 1462 1463 $menu_item_value['_invalid'] = (bool) $menu_item_value['_invalid']; 1451 1464 1452 1465 /** This filter is documented in wp-includes/class-wp-customize-setting.php */
Note: See TracChangeset
for help on using the changeset viewer.