1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-22 20:56:55 +08:00
buddypress/tests/phpunit/testcases/admin
Mathieu Viet a794a0b6cc 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



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