Ticket #15963: 15963.4.diff
File 15963.4.diff, 491 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/post-functions.php
4186 4186 $uri = $page->post_name; 4187 4187 4188 4188 foreach ( $page->ancestors as $parent ) { 4189 $uri = get_post( $parent )->post_name . '/' . $uri; 4189 if ( 'publish' = get_post_status( $parent ) ) { 4190 $uri = $parent->post_name . '/' . $uri; 4191 } 4190 4192 } 4191 4193 4192 4194 return $uri;