Skip to:

Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#2020 closed defect (fixed)

Break up extend/buddypress.php into more reasonable component files

Reported by: jmdodd Owned by:
Milestone: 2.2 Priority: normal
Severity: normal Version: trunk
Component: BuddyPress Keywords: has-patch dev-feedback


extend/buddypress.php is a conglomeration of classes for dealing with all bbPress-BuddyPress interactions, including the Activity and Group components, as well as general URL mappers and overrides. Break it into a file structure to allow for an easier developer experience.

Attachments (1)

2020.diff (151.7 KB) - added by jmdodd 17 months ago.
File re-org, index.php added.

Download all attachments as: .zip

Change History (5)

jmdodd17 months ago

File re-org, index.php added.

comment:1 jmdodd17 months ago

  • Keywords has-patch dev-feedback added

I do not have much experience adding/deleting files from SVN in a diff; please let me know if this needs to be altered.

When splitting out BBP_BuddyPress_Activity from BBP_BuddyPress, I ended up adding BBP_Buddypress->setup_components() to instantiate BBP_BuddyPress_Activity.

comment:2 johnjamesjacoby17 months ago

  • Milestone changed from 2.3 to 2.2

Awesome stuff. I'm moving this into 2.2 to remember to look at it asap. Would fit nicely with the file structure reorg.

comment:3 johnjamesjacoby17 months ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4394]) BuddyPress:

  • Split buddypress.php up into more manageable parts.
  • Props jmdodd.
  • Fixes #2020.

comment:4 johnjamesjacoby17 months ago

(In [4397]) BuddyPress:

  • Remove component.php, and consolidate into loader.php.
  • Introduce members.php, for modifying bbPress profile links.
  • Rename loading class and references where appropriate.
  • See #2020.
Note: See TracTickets for help on using tickets.