[buddypress-trac] [BuddyPress Trac] #9086: Filter on `wp_unique_post_slug` issue
buddypress-trac
noreply at wordpress.org
Sun Mar 24 07:39:24 UTC 2024
#9086: Filter on `wp_unique_post_slug` issue
---------------------------------------------+---------------------
Reporter: ahegyes | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 12.4.0
Component: Core | Version: 12.0.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit |
---------------------------------------------+---------------------
Comment (by imath):
In [changeset:"13777" 13777]:
{{{
#!CommitTicketReference repository="" revision="13777"
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
See #9086 (trunk)
Closes https://github.com/buddypress/buddypress/pull/256
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9086#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list