Skip to:
Content

BuddyPress.org

Ticket #8890: 8890.4.patch

File 8890.4.patch, 6.1 KB (added by viralsampat, 3 years ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

  • bp-members-functions.php

     
    881881 *
    882882 * @param int $user_id The ID for the user.
    883883 * @return bool True if spammer, otherwise false.
     884 * @global BP_Core_Members_Template $members_template The main member template loop class.
    884885 */
    885886function bp_is_user_spammer( $user_id = 0 ) {
    886887
     
    24562457 * @since 2.0.0
    24572458 *
    24582459 * @see bp_core_signup_disable_inactive()
     2460 * @global $error
    24592461 */
    24602462function bp_members_login_resend_activation_email() {
    24612463        global $error;
     
    26242626 * Show a custom error message when a logged-in user is marked as a spammer.
    26252627 *
    26262628 * @since 1.8.0
     2629 * @global $error.
    26272630 */
    26282631function bp_live_spammer_login_error() {
    26292632        global $error;
  • classes/class-bp-members-admin.php

     
    721721        /**
    722722         * Highlight the Users menu if on Edit Profile and check if on the user's admin profile.
    723723         *
    724          * @since 2.1.0
     724         * @since 2.1.0z
     725         *
     726         * @global string $submenu_file.
     727         * @global string $parent_file.
    725728         */
    726729        public function profile_admin_head() {
    727730                global $submenu_file, $parent_file;
     
    16851688         *
    16861689         * @param WP_User_Query|null $query The users query.
    16871690         * @return WP_User_Query|null The users query without the signups.
     1691         * @global wpdb $wpdb WordPress database object.
    16881692         */
    16891693        public function remove_signups_from_user_query( $query = null ) {
    16901694                global $wpdb;
     
    17271731         *
    17281732         * @param array $views WP List Table views.
    17291733         * @return array The views with the signup view added.
     1734         *
     1735         * @global string $role.
    17301736         */
    17311737        public function signup_filter_view( $views = array() ) {
    17321738                global $role;
     
    27652771         * @param WP_Query $query
    27662772         *
    27672773         * @since 2.7.0
     2774         *
     2775         * @global string $pagenow.
    27682776         */
    27692777        public function users_table_filter_by_type( $query ) {
    27702778                global $pagenow;
  • classes/class-bp-members-component.php

     
    289289         * @see BP_Component::setup_globals() for description of parameters.
    290290         *
    291291         * @param array $args See {@link BP_Component::setup_globals()}.
     292         * @global wpdb $wpdb WordPress database object.
    292293         */
    293294        public function setup_globals( $args = array() ) {
    294295                global $wpdb;
  • classes/class-bp-members-list-table.php

     
    5757         * manipulation required prior to rendering.
    5858         *
    5959         * @since 2.0.0
     60         *
     61         * @global $usersearch.
    6062         */
    6163        public function prepare_items() {
    6264                global $usersearch;
     
    98100         * @since 2.5.0
    99101         *
    100102         * @global string $role The name of role the users screens is filtered by
     103         *
     104         * @global string $role.
    101105         */
    102106        public function views() {
    103107                global $role;
  • classes/class-bp-members-ms-list-table.php

     
    5757         * manipulation required prior to rendering.
    5858         *
    5959         * @since 2.0.0
     60         *
     61         * @global string $usersearch.
     62         * @global string $mode.
    6063         */
    6164        public function prepare_items() {
    6265                global $usersearch, $mode;
     
    396399         * @since 2.0.0
    397400         *
    398401         * @param object|null $signup_object The signup data object.
     402         * @global string $mode.
    399403         */
    400404        public function column_registered( $signup_object = null ) {
    401405                global $mode;
     
    415419         * @since 2.0.0
    416420         *
    417421         * @param object|null $signup_object Signup object instance.
     422         * @global string $mode.
    418423         */
    419424        public function column_date_sent( $signup_object = null ) {
    420425                global $mode;
  • classes/class-bp-signup.php

     
    172172         * Populate the instantiated class with data based on the signup_id provided.
    173173         *
    174174         * @since 2.0.0
     175         *
     176         * @global wpdb $wpdb WordPress database object.
    175177         */
    176178        public function populate() {
    177179                global $wpdb;
     
    279281         *     @type array $signups Located signups. (IDs only if `fields` is set to `ids`.)
    280282         *     @type int   $total   Total number of signups matching params.
    281283         * }
     284         * @global wpdb $wpdb WordPress database object.
    282285         */
    283286        public static function get( $args = array() ) {
    284287                global $wpdb;
     
    454457         *     @type string     $meta           New user's user meta.
    455458         * }
    456459         * @return int|bool ID of newly created signup on success, false on failure.
     460         * @global wpdb $wpdb WordPress database object.
    457461         */
    458462        public static function add( $args = array() ) {
    459463                global $wpdb;
     
    533537         * @param string $user_email    User email address.
    534538         * @param array  $usermeta      Metadata associated with the signup.
    535539         * @return int User id.
     540         * @global wpdb $wpdb WordPress database object.
    536541         */
    537542        public static function add_backcompat( $user_login = '', $user_password = '', $user_email = '', $usermeta = array() ) {
    538543                global $wpdb;
     
    643648         *
    644649         * @param string $key Activation key.
    645650         * @return bool True on success, false on failure.
     651         * @global wpdb $wpdb WordPress database object.
    646652         */
    647653        public static function validate( $key = '' ) {
    648654                global $wpdb;
     
    721727         *     @type array $meta Meta to update.
    722728         * }
    723729         * @return int The signup id.
     730         * @global wpdb $wpdb WordPress database object.
    724731         */
    725732        public static function update( $args = array() ) {
    726733                global $wpdb;
     
    984991         *
    985992         * @param array $signup_ids Single ID or list of IDs to delete.
    986993         * @return array
     994         * @global wpdb $wpdb WordPress database object.
    987995         */
    988996        public static function delete( $signup_ids = array() ) {
    989997                global $wpdb;