Changeset 45607 for trunk/tests/phpunit/tests/post/nav-menu.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/nav-menu.php
r44966 r45607 652 652 $tag_id = self::factory()->tag->create(); 653 653 654 $wpdb-> query( "UPDATE $wpdb->posts SET ID=$new_id WHERE ID=$page_id");655 $wpdb-> query( "UPDATE $wpdb->terms SET term_id=$new_id WHERE term_id=$tag_id");656 $wpdb-> query( "UPDATE $wpdb->term_taxonomy SET term_id=$new_id WHERE term_id=$tag_id");654 $wpdb->update( $wpdb->posts, array( 'ID' => $new_id ), array( 'ID' => $page_id ) ); 655 $wpdb->update( $wpdb->terms, array( 'term_id' => $new_id ), array( 'term_id' => $tag_id ) ); 656 $wpdb->update( $wpdb->term_taxonomy, array( 'term_id' => $new_id ), array( 'term_id' => $tag_id ) ); 657 657 658 658 update_option( 'page_on_front', $new_id );
Note: See TracChangeset
for help on using the changeset viewer.