Make WordPress Core

Ticket #51147: 51147.diff

File 51147.diff, 455 bytes (added by stormrockwell, 4 years ago)
  • src/wp-admin/includes/ms.php

    diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php
    index ff7df62354..f50b85c2e8 100644
    a b function avoid_blog_page_permalink_collision( $data, $postarr ) { 
    736736        if ( ! is_main_site() ) {
    737737                return $data;
    738738        }
     739        if ( isset( $data['post_parent'] ) && $data['post_parent'] ) {
     740                return $data;
     741        }
    739742
    740743        $post_name = $data['post_name'];
    741744        $c         = 0;