1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-23 21:06:56 +08:00
buddypress/tests/phpunit/testcases/admin
Mathieu Viet ee7803fa87 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)



git-svn-id: https://buddypress.svn.wordpress.org/branches/12.0@13778 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2024-03-24 07:47:58 +00:00
..
functions.php Improve the page / buddypress post types slugs unicity checks 2024-03-24 07:47:58 +00:00