WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4/tests/phpunit/tests/post.php

    r35705 r36105  
    675675        $this->assertEquals( 'parent/child', get_page_uri( $child_id ) );
    676676
    677         // now delete the parent and check
    678         wp_delete_post( $parent_id );
     677        // now delete the parent from the database and check
     678        wp_delete_post( $parent_id, true );
    679679        $this->assertEquals( 'child', get_page_uri( $child_id ) );
    680680    }
Note: See TracChangeset for help on using the changeset viewer.