[buddypress-trac] [BuddyPress Trac] #9237: [Site Health Info Tab] Some "Active components" are incorrect while viewing the BuddyPress panel

buddypress-trac noreply at wordpress.org
Wed Oct 2 17:52:35 UTC 2024


#9237: [Site Health Info Tab] Some "Active components" are incorrect while viewing
the BuddyPress panel
-------------------------------------------------+-------------------------
 Reporter:  emaralive                            |       Owner:  emaralive
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  14.2.0
Component:  Administration                       |     Version:  14.1.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch dev-       |
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by imath):

 Thanks for looking more into it @emaralive

 I personaly like this version of your patch:

 {{{
 $all_components    = array_merge( bp_core_get_components( 'required' ),
 bp_core_get_components( 'optional' ) );
 $active_components = array_merge( buddypress()->active_components, array(
 'core' => '1' ) );
 $active_components = wp_list_pluck( array_intersect_key( $all_components,
 $active_components ), 'title' );
 }}}

 I'm just wondering why not simply use `bp_core_get_components()` to set
 `$all_components`?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9237#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list