Ticket #8882: 8882.patch
File 8882.patch, 4.2 KB (added by , 22 months ago) |
---|
-
src/bp-core/admin/bp-core-admin-functions.php
209 209 * The administrator will be shown a notice for each check that fails. 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. 220 219 if ( ! bp_current_user_can( 'bp_moderate' ) ) { -
src/bp-core/classes/class-bp-optouts-list-table.php
52 52 * @since 8.0.0 53 53 */ 54 54 public function prepare_items() { 55 global $usersearch;56 55 57 56 $search = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : ''; 58 57 $per_page = $this->get_items_per_page( str_replace( '-', '_', "{$this->screen->id}_per_page" ) ); -
src/bp-groups/classes/class-bp-groups-group.php
760 760 * @return int|null|false Group ID if found; null if not; false if missing parameters. 761 761 */ 762 762 public static function get_id_by_previous_slug( $slug ) { 763 global $wpdb;764 763 765 764 if ( empty( $slug ) ) { 766 765 return false; -
src/bp-groups/classes/class-bp-groups-member.php
1101 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 1104 1106 1105 if ( empty( $group_id ) ) { 1107 1106 return array(); -
src/bp-members/classes/class-bp-members-invitations-list-table.php
59 59 * @since 8.0.0 60 60 */ 61 61 public function prepare_items() { 62 global $usersearch;63 62 64 63 $search = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : ''; 65 64 $per_page = $this->get_items_per_page( str_replace( '-', '_', "{$this->screen->id}_per_page" ) ); -
src/bp-members/classes/class-bp-signup.php
619 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 622 624 623 if ( empty( $user_id ) ) { 625 624 return false; -
src/bp-templates/bp-nouveau/includes/groups/classes.php
146 146 * @since 3.0.0 147 147 */ 148 148 public static function get_inviter_ids( $user_id = 0, $group_id = 0 ) { 149 global $wpdb;150 149 151 150 if ( empty( $group_id ) || empty( $user_id ) ) { 152 151 return array(); -
src/bp-xprofile/classes/class-bp-xprofile-field.php
266 266 * @return BP_XProfile_Field|false Field object if found, otherwise false. 267 267 */ 268 268 public static function get_instance( $field_id, $user_id = null, $get_data = true ) { 269 global $wpdb;270 269 271 270 $field_id = (int) $field_id; 272 271 if ( ! $field_id ) {