Skip to:
Content

BuddyPress.org

Ticket #8882: 8882.patch

File 8882.patch, 4.2 KB (added by upadalavipul, 15 months ago)
  • src/bp-core/admin/bp-core-admin-functions.php

     
    209209 * The administrator will be shown a notice for each check that fails.
    210210 *
    211211 * @global wpdb $wpdb WordPress database object.
    212  * @global WP_Rewrite $wp_rewrite WordPress object implementing a rewrite component API.
    213212 *
    214213 * @since 1.2.0
    215214 */
    216215function bp_core_activation_notice() {
    217         global $wp_rewrite, $wpdb;
     216        global $wpdb;
    218217
    219218        // Only the super admin gets warnings.
    220219        if ( ! bp_current_user_can( 'bp_moderate' ) ) {
  • src/bp-core/classes/class-bp-optouts-list-table.php

     
    5252         * @since 8.0.0
    5353         */
    5454        public function prepare_items() {
    55                 global $usersearch;
    5655
    5756                $search   = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
    5857                $per_page = $this->get_items_per_page( str_replace( '-', '_', "{$this->screen->id}_per_page" ) );
  • src/bp-groups/classes/class-bp-groups-group.php

     
    760760         * @return int|null|false Group ID if found; null if not; false if missing parameters.
    761761         */
    762762        public static function get_id_by_previous_slug( $slug ) {
    763                 global $wpdb;
    764763
    765764                if ( empty( $slug ) ) {
    766765                        return false;
  • src/bp-groups/classes/class-bp-groups-member.php

     
    11011101         * @return array Info about group admins (user_id + date_modified).
    11021102         */
    11031103        public static function get_group_administrator_ids( $group_id ) {
    1104                 global $wpdb;
    11051104
    11061105                if ( empty( $group_id ) ) {
    11071106                        return array();
  • src/bp-members/classes/class-bp-members-invitations-list-table.php

     
    5959         * @since 8.0.0
    6060         */
    6161        public function prepare_items() {
    62                 global $usersearch;
    6362
    6463                $search   = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
    6564                $per_page = $this->get_items_per_page( str_replace( '-', '_', "{$this->screen->id}_per_page" ) );
  • src/bp-members/classes/class-bp-signup.php

     
    619619         * @return int|bool The status if found, otherwise false.
    620620         */
    621621        public static function check_user_status( $user_id = 0 ) {
    622                 global $wpdb;
    623622
    624623                if ( empty( $user_id ) ) {
    625624                        return false;
  • src/bp-templates/bp-nouveau/includes/groups/classes.php

     
    146146         * @since 3.0.0
    147147         */
    148148        public static function get_inviter_ids( $user_id = 0, $group_id = 0 ) {
    149                 global $wpdb;
    150149
    151150                if ( empty( $group_id ) || empty( $user_id ) ) {
    152151                        return array();
  • src/bp-xprofile/classes/class-bp-xprofile-field.php

     
    266266         * @return BP_XProfile_Field|false Field object if found, otherwise false.
    267267         */
    268268        public static function get_instance( $field_id, $user_id = null, $get_data = true ) {
    269                 global $wpdb;
    270269
    271270                $field_id = (int) $field_id;
    272271                if ( ! $field_id ) {