Make WordPress Core

Ticket #36174: patch_draft_child_post_link.diff

File patch_draft_child_post_link.diff, 406 bytes (added by inderpreet99, 10 years ago)

patch

  • wp-includes/post.php

     
    44414441
    44424442        foreach ( $page->ancestors as $parent ) {
    44434443                $parent = get_post( $parent );
    4444                 if ( $parent ) {
     4444                if ( $parent && ! empty( $parent->post_name ) ) {
    44454445                        $uri = $parent->post_name . '/' . $uri;
    44464446                }
    44474447        }