Make WordPress Core


Ignore:
Timestamp:
10/26/2016 05:48:58 AM (8 years ago)
Author:
pento
Message:

Tests: Fix some query typos introduced in [38940].

Props piewp for the catch.
See #35272.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/nav-menu.php

    r38940 r38945  
    505505
    506506        $wpdb->query( "UPDATE $wpdb->posts SET ID=$new_id WHERE ID=$page_id" );
    507         $wpdb->query( "UPDATE $wpdb->terms SET term_id=$new_id WHERE term_id=$page_id" );
    508         $wpdb->query( "UPDATE $wpdb->term_taxonomy SET term_id=$new_id WHERE term_id=$page_id" );
     507        $wpdb->query( "UPDATE $wpdb->terms SET term_id=$new_id WHERE term_id=$tag_id" );
     508        $wpdb->query( "UPDATE $wpdb->term_taxonomy SET term_id=$new_id WHERE term_id=$tag_id" );
    509509
    510510        update_option( 'page_on_front', $new_id );
Note: See TracChangeset for help on using the changeset viewer.