Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/06/2023 09:26:21 AM (3 years ago)
Author:
imath
Message:

Remove global vars declarations when corresponding vars are not used

Props upadalavipul

Closes https://github.com/buddypress/buddypress/pull/96
Fixes #8882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-signup.php

    r13414 r13469  
    616616         * @since 2.0.0
    617617         *
    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.
    620620         */
    621621        public static function check_user_status( $user_id = 0 ) {
    622                 global $wpdb;
    623 
    624622                if ( empty( $user_id ) ) {
    625623                        return false;
Note: See TracChangeset for help on using the changeset viewer.