[buddypress-trac] [BuddyPress Trac] #9086: Filter on `wp_unique_post_slug` issue
buddypress-trac
noreply at wordpress.org
Sun Mar 24 07:48:06 UTC 2024
#9086: Filter on `wp_unique_post_slug` issue
---------------------------------------------+---------------------
Reporter: ahegyes | Owner: imath
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 12.4.0
Component: Core | Version: 12.0.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit |
---------------------------------------------+---------------------
Changes (by imath):
* owner: (none) => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"13778" 13778]:
{{{
#!CommitTicketReference repository="" revision="13778"
Improve the `page` / `buddypress` post types slugs unicity checks
To avoid slug conflicts between the `page` & `buddypress` post types as
both URI Schemas put their slugs right after the site domain, 12.0.0
introduced a filter to extend the WordPress built-in check performed by
`wp_unique_post_slug()`.
This filter needed to be improve to :
- make sure to allow WordPress sub-pages to have the same slugs than the
BP Directory ones as in this case the URI Schemas puts the parent page
slug before the sub-page one.
- only request the `page` or `buddypress` post types having the same
`post_name` than the `page` or `buddypress` post type being inserted.
Props ahegyes, emaralive
Fixes #9086 (branch 12.0)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9086#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list