[wp-trac] [WordPress Trac] #45260: post_name collision in multiblog with sub pages
WordPress Trac
noreply at wordpress.org
Mon Nov 5 06:52:48 UTC 2018
#45260: post_name collision in multiblog with sub pages
-------------------------------+------------------------------
Reporter: Daschmi | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.9.8
Severity: normal | Resolution:
Keywords: | Focuses: multisite
-------------------------------+------------------------------
Changes (by SergeyBiryukov):
* component: Networks and Sites => Posts, Post Types
Old description:
> Wordpress Version: Version 4.9.8
> Multiblog installation with several Blogs on one domain
>
> - main blog with URL https://daschmi.de/
> - another blog with URL https://daschmi.de/blog1
>
> Problem
>
> On the root Blog i can not create a page with the page name "blog1" on a
> subpage.
>
> Example URL: https://blogoverview/blog1
>
> The problem is the funtion avoid_blog_page_permalink_collision in /wp-
> admin/includes/ms.php:640
>
> workaround for me after the is_main_site() check:
>
> if ($data['post_parent'] > 0) return $data;
New description:
Wordpress Version: Version 4.9.8
Multiblog installation with several Blogs on one domain
- main blog with URL https://daschmi.de/
- another blog with URL https://daschmi.de/blog1
Problem
On the root Blog i can not create a page with the page name "blog1" on a
subpage.
Example URL: https://blogoverview/blog1
The problem is the funtion avoid_blog_page_permalink_collision in /wp-
admin/includes/ms.php:640
workaround for me after the is_main_site() check:
{{{
if ($data['post_parent'] > 0) return $data;
}}}
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45260#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list