Changeset 13469
- Timestamp:
- 05/06/2023 09:26:21 AM (17 months ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-functions.php
r13468 r13469 210 210 * 211 211 * @global wpdb $wpdb WordPress database object. 212 * @global WP_Rewrite $wp_rewrite WordPress object implementing a rewrite component API.213 212 * 214 213 * @since 1.2.0 215 214 */ 216 215 function bp_core_activation_notice() { 217 global $wp _rewrite, $wpdb;216 global $wpdb; 218 217 219 218 // Only the super admin gets warnings. -
trunk/src/bp-core/classes/class-bp-optouts-list-table.php
r13433 r13469 53 53 */ 54 54 public function prepare_items() { 55 global $usersearch;56 57 55 $search = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : ''; 58 56 $per_page = $this->get_items_per_page( str_replace( '-', '_', "{$this->screen->id}_per_page" ) ); -
trunk/src/bp-groups/classes/class-bp-groups-group.php
r13414 r13469 756 756 * @since 2.9.0 757 757 * 758 * @param string $slug Slug to check. 759 * 760 * @return int|null|false Group ID if found; null if not; false if missing parameters. 758 * @param string $slug Slug to check. 759 * @return int|null|false Group ID if found; null if not; false if missing parameters. 761 760 */ 762 761 public static function get_id_by_previous_slug( $slug ) { 763 global $wpdb;764 765 762 if ( empty( $slug ) ) { 766 763 return false; -
trunk/src/bp-groups/classes/class-bp-groups-member.php
r13395 r13469 1098 1098 * @since 1.6.0 1099 1099 * 1100 * @param int$group_id ID of the group.1101 * @return array Info about group admins (user_id + date_modified).1100 * @param int $group_id ID of the group. 1101 * @return array Info about group admins (user_id + date_modified). 1102 1102 */ 1103 1103 public static function get_group_administrator_ids( $group_id ) { 1104 global $wpdb;1105 1106 1104 if ( empty( $group_id ) ) { 1107 1105 return array(); -
trunk/src/bp-members/classes/class-bp-members-invitations-list-table.php
r13433 r13469 60 60 */ 61 61 public function prepare_items() { 62 global $usersearch;63 64 62 $search = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : ''; 65 63 $per_page = $this->get_items_per_page( str_replace( '-', '_', "{$this->screen->id}_per_page" ) ); -
trunk/src/bp-members/classes/class-bp-signup.php
r13414 r13469 616 616 * @since 2.0.0 617 617 * 618 * @param int$user_id ID of the user being checked.619 * @return int|bool The status if found, otherwise false.618 * @param int $user_id ID of the user being checked. 619 * @return int|bool The status if found, otherwise false. 620 620 */ 621 621 public static function check_user_status( $user_id = 0 ) { 622 global $wpdb;623 624 622 if ( empty( $user_id ) ) { 625 623 return false; -
trunk/src/bp-templates/bp-nouveau/includes/groups/classes.php
r13453 r13469 126 126 127 127 /** 128 * @since 3.0.0 128 * Build the Meta Query to get all members list. 129 * 130 * @since 3.0.0 131 * 132 * @param BP_User_Query $bp_user_query The User Query object. 129 133 */ 130 134 public function build_meta_query( BP_User_Query $bp_user_query ) { … … 144 148 145 149 /** 146 * @since 3.0.0 150 * Get the list of group invites. 151 * 152 * @since 3.0.0 153 * 154 * @param integer $user_id The User ID. 155 * @param integer $group_id The Group ID. 156 * @return array Matching BP_Invitation objects. 147 157 */ 148 158 public static function get_inviter_ids( $user_id = 0, $group_id = 0 ) { 149 global $wpdb;150 151 159 if ( empty( $group_id ) || empty( $user_id ) ) { 152 160 return array(); 153 161 } 154 162 155 return groups_get_invites( array( 156 'user_id' => $user_id, 157 'item_id' => $group_id, 158 'invite_sent' => 'sent', 159 'fields' => 'inviter_ids' 160 ) ); 163 return groups_get_invites( 164 array( 165 'user_id' => $user_id, 166 'item_id' => $group_id, 167 'invite_sent' => 'sent', 168 'fields' => 'inviter_ids', 169 ) 170 ); 161 171 } 162 172 } -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php
r13414 r13469 267 267 */ 268 268 public static function get_instance( $field_id, $user_id = null, $get_data = true ) { 269 global $wpdb;270 271 269 $field_id = (int) $field_id; 272 270 if ( ! $field_id ) {
Note: See TracChangeset
for help on using the changeset viewer.