Making WordPress.org

Changeset 11062


Ignore:
Timestamp:
06/25/2021 03:49:40 AM (5 years ago)
Author:
dd32
Message:

Support: Only break user passwords when the user role to changed to blocked on the main forums, not on rosetta forums.

See https://wordpress.slack.com/archives/C02RQC6RW/p1624565989320500

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    r10939 r11062  
    132132        add_filter( 'bbp_subscription_mail_message', array( $this, 'bbp_subscription_mail_message'), 5, 3 );
    133133
    134         // Break users sessions / passwords when they get blocked.
    135         add_action( 'bbp_set_user_role', array( $this, 'user_blocked_password_handler' ), 10, 3 );
     134        if ( 'wordpress.org' === get_blog_details()->domain ) {
     135            // Break users sessions / passwords when they get blocked, on the main forums only.
     136            add_action( 'bbp_set_user_role', array( $this, 'user_blocked_password_handler' ), 10, 3 );
     137        }
    136138    }
    137139
Note: See TracChangeset for help on using the changeset viewer.