| @@ 861-872 (lines=12) @@ | ||
| 858 | wp_slash( $menu_item_data ) |
|
| 859 | ); |
|
| 860 | ||
| 861 | if ( is_wp_error( $r ) ) { |
|
| 862 | $this->update_status = 'error'; |
|
| 863 | $this->update_error = $r; |
|
| 864 | } else { |
|
| 865 | if ( $is_placeholder ) { |
|
| 866 | $this->previous_post_id = $this->post_id; |
|
| 867 | $this->post_id = $r; |
|
| 868 | $this->update_status = 'inserted'; |
|
| 869 | } else { |
|
| 870 | $this->update_status = 'updated'; |
|
| 871 | } |
|
| 872 | } |
|
| 873 | } |
|
| 874 | ||
| 875 | } |
|
| @@ 535-548 (lines=14) @@ | ||
| 532 | $r = wp_update_nav_menu_object( $menu_id, wp_slash( $menu_data ) ); |
|
| 533 | } |
|
| 534 | ||
| 535 | if ( is_wp_error( $r ) ) { |
|
| 536 | $this->update_status = 'error'; |
|
| 537 | $this->update_error = $r; |
|
| 538 | } else { |
|
| 539 | if ( $is_placeholder ) { |
|
| 540 | $this->previous_term_id = $this->term_id; |
|
| 541 | $this->term_id = $r; |
|
| 542 | $this->update_status = 'inserted'; |
|
| 543 | } else { |
|
| 544 | $this->update_status = 'updated'; |
|
| 545 | } |
|
| 546 | ||
| 547 | $auto_add = $value['auto_add']; |
|
| 548 | } |
|
| 549 | } |
|
| 550 | ||
| 551 | if ( null !== $auto_add ) { |
|