- Timestamp:
- 02/09/2020 04:52:28 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php
r47122 r47219 157 157 */ 158 158 public function value() { 159 if ( $this->is_previewed && $this->_previewed_blog_id === get_current_blog_id()) {159 if ( $this->is_previewed && get_current_blog_id() === $this->_previewed_blog_id ) { 160 160 $undefined = new stdClass(); // Symbol. 161 161 $post_value = $this->post_value( $undefined ); … … 385 385 */ 386 386 public function filter_nav_menu_options( $nav_menu_options ) { 387 if ( $this->_previewed_blog_id !== get_current_blog_id()) {387 if ( get_current_blog_id() !== $this->_previewed_blog_id ) { 388 388 return $nav_menu_options; 389 389 } … … 556 556 557 557 $post_value = $setting->post_value( null ); 558 if ( ! is_null( $post_value ) && $this->previous_term_id === intval( $post_value )) {558 if ( ! is_null( $post_value ) && intval( $post_value ) === $this->previous_term_id ) { 559 559 $this->manager->set_post_value( $setting->id, $this->term_id ); 560 560 $setting->save();
Note: See TracChangeset
for help on using the changeset viewer.