Changeset 13621
- Timestamp:
- 10/29/2023 01:50:21 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-component.php
r13618 r13621 998 998 999 999 $bp = buddypress(); 1000 if ( ! bp_is_active( $single_item_component ) && ! $bp->members->nav->get_primary( array( 'slug' => $single_item_component ), false ) ) { 1001 bp_do_404(); 1002 return; 1003 } 1004 1005 // Navigation is generated by a component. 1000 1006 if ( isset( $bp->{$single_item_component} ) ) { 1001 1007 $screen_function = ''; … … 1019 1025 1020 1026 if ( ! $single_item_action || ! $screen_function || ! is_callable( $screen_function ) ) { 1027 bp_do_404(); 1028 return; 1029 } 1030 1031 // Navigation is not generated by a component. 1032 } else { 1033 $sub_nav = $bp->members->nav->get_secondary( 1034 array( 1035 'parent_slug' => $single_item_component, 1036 'slug' => $single_item_action, 1037 ), 1038 false 1039 ); 1040 1041 if ( ! $sub_nav ) { 1021 1042 bp_do_404(); 1022 1043 return;
Note: See TracChangeset
for help on using the changeset viewer.