Changeset 36094
- Timestamp:
- 12/26/2015 03:45:28 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r36091 r36094 4301 4301 foreach ( $page->ancestors as $parent ) { 4302 4302 $parent = get_post( $parent ); 4303 if ( 'publish' === $parent->post_status) {4303 if ( $parent ) { 4304 4304 $uri = $parent->post_name . '/' . $uri; 4305 4305 } -
trunk/tests/phpunit/tests/post.php
r35987 r36094 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.