Ticket #15963: 15963.2.diff
| File 15963.2.diff, 429 bytes (added by MikeHansenMe, 8 months ago) |
|---|
| Line | |
|---|---|
| 1 | Index: wp-includes/post.php |
| 2 | =================================================================== |
| 3 | --- wp-includes/post.php (revision 21827) |
| 4 | +++ wp-includes/post.php (working copy) |
| 5 | @@ -3442,6 +3442,8 @@ |
| 6 | $uri = $page->post_name; |
| 7 | |
| 8 | foreach ( $page->ancestors as $parent ) { |
| 9 | + /* check that the page is publish status*/ |
| 10 | + if("publish" == get_post_status( $parent )) |
| 11 | $uri = get_post( $parent )->post_name . "/" . $uri; |
| 12 | } |
| 13 |
