mirror of
https://github.com/buddypress/buddypress.git
synced 2026-07-23 21:06:56 +08:00
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 |
||
|---|---|---|
| .. | ||
| functions.php | ||