Changeset 36105
- Timestamp:
- 12/27/2015 02:15:30 AM (9 years ago)
- Location:
- branches/4.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
-
branches/4.4/src/wp-includes/post.php
r35725 r36105 4291 4291 foreach ( $page->ancestors as $parent ) { 4292 4292 $parent = get_post( $parent ); 4293 if ( 'publish' === $parent->post_status) {4293 if ( $parent ) { 4294 4294 $uri = $parent->post_name . '/' . $uri; 4295 4295 } -
branches/4.4/tests/phpunit/tests/post.php
r35705 r36105 675 675 $this->assertEquals( 'parent/child', get_page_uri( $child_id ) ); 676 676 677 // now delete the parent and check678 wp_delete_post( $parent_id );677 // now delete the parent from the database and check 678 wp_delete_post( $parent_id, true ); 679 679 $this->assertEquals( 'child', get_page_uri( $child_id ) ); 680 680 }
Note: See TracChangeset
for help on using the changeset viewer.