[buddypress-trac] [BuddyPress Trac] #8918: Automate component's directory `buddypress` post type association
buddypress-trac
noreply at wordpress.org
Tue Jul 11 08:08:18 UTC 2023
#8918: Automate component's directory `buddypress` post type association
-------------------------+-----------------------
Reporter: imath | Owner: imath
Type: enhancement | Status: reopened
Priority: normal | Milestone: 12.0.0
Component: Core | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+-----------------------
Changes (by prbot):
* keywords: needs-patch => has-patch
Comment:
''This ticket was mentioned in
[https://github.com/buddypress/buddypress/pull/127 PR #127] on
[https://github.com/buddypress/buddypress/ buddypress/buddypress] by
[https://profiles.wordpress.org/imath/ @imath].''
1. the `$bp->loaded_components` array uses the component slug as keys (not
the component ID). Avoid potential problems when a component slug is very
different than the component ID by looping into this array the right way.
2. Makes sure to use the component `$root_slug` and `$directory_title`
when automatically creating a `buddypress` post type for orphaned
components.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/8918
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8918#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list