Ticket #8892: 8892.2.patch
File 8892.2.patch, 3.8 KB (added by , 19 months ago) |
---|
-
src/bp-groups/bp-groups-notifications.php
313 313 */ 314 314 function groups_notification_group_invites( &$group, &$member, $inviter_user_id ) { 315 315 316 // @todo $inviter_ud may be used for caching, test without it317 $inviter_ud = bp_core_get_core_userdata( $inviter_user_id );318 319 316 if ( $member instanceof BP_Groups_Member ) { 320 317 $invited_user_id = $member->user_id; 321 318 } else if ( is_int( $member ) ) { -
src/bp-groups/classes/class-bp-groups-component.php
381 381 382 382 // Set group type if available. 383 383 if ( bp_is_current_action( bp_get_groups_group_type_base() ) && bp_action_variable() ) { 384 $matched_type = '';385 384 $matched_types = bp_groups_get_group_types( 386 385 array( 387 386 'has_directory' => true, … … 766 765 if ( bp_is_item_admin() ) { 767 766 // Get the "manage" screens. 768 767 $manage_screens = bp_get_group_screens( 'manage', true ); 769 $admin_link = bp_get_group_url(770 $this->current_group,771 array(772 'single_item_action' => bp_rewrites_get_slug( 'groups', 'bp_group_read_admin', 'admin' ),773 )774 );775 768 776 769 // Common params to all nav items. 777 770 $default_params = array( -
src/bp-groups/classes/class-bp-groups-list-table.php
85 85 86 86 // Option defaults. 87 87 $include_id = false; 88 $search_terms = false;89 88 90 89 // Set current page. 91 90 $page = $this->get_pagenum(); … … 120 119 121 120 // Are we doing a search? 122 121 if ( ! empty( $_REQUEST['s'] ) ) { 123 $search_terms = $_REQUEST['s']; 124 122 125 123 // Set the view as a search request. 126 124 $this->view = 'search'; 127 125 } -
src/bp-members/bp-members-activity.php
240 240 } 241 241 242 242 // Add the activity. 243 $activity_id =bp_activity_add(243 bp_activity_add( 244 244 array( 245 245 'user_id' => $user_id, 246 246 'component' => $bp->members->id, -
src/bp-members/screens/activate.php
44 44 bp_core_redirect( $redirect_to ); 45 45 } 46 46 47 // Get BuddyPress.48 $bp = buddypress();49 50 47 /** 51 48 * Filters the template to load for the Member activation page screen. 52 49 * … … 85 82 return; 86 83 } 87 84 88 $bp = buddypress();89 85 $redirect = bp_get_activation_page(); 90 86 91 87 /** -
src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox-acceptance.php
86 86 */ 87 87 public function edit_field_html( array $raw_properties = array() ) { 88 88 $user_id = bp_displayed_user_id(); 89 $required = false;90 89 $default_r = array(); 91 90 92 91 if ( isset( $raw_properties['user_id'] ) ) { … … 96 95 97 96 if ( bp_get_the_profile_field_is_required() ) { 98 97 $default_r['required'] = 'required'; // HTML5 required attribute. 99 $required = true;100 98 } 101 99 102 100 $r = bp_parse_args(