Making WordPress.org


Ignore:
Timestamp:
08/12/2025 03:56:25 AM (4 months ago)
Author:
dd32
Message:

Registration: Allow registrations with a signup token to bypass some checks. This is intended only for limited scenario's where a signup would otherwise be caught in filters accidentally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php

    r14456 r14511  
    132132        $passes_block_words
    133133    );
     134
     135    // If the signup has a bypass-spam-checks token, approve it.
     136    if ( ! $pending_user['cleared'] && wporg_reg_has_signup_token( $pending_user ) ) {
     137        $pending_user['cleared']        = 1;
     138        $pending_user['meta']['bypass'] = 'yes';
     139    }
    134140
    135141    $inserted = wporg_update_pending_user( $pending_user );
     
    498504    }
    499505
     506    // If the signup has a bypass-spam-checks token, approve it.
     507    if ( ! $pending_user['cleared'] && wporg_reg_has_signup_token( $pending_user ) ) {
     508        $pending_user['cleared']        = 1;
     509        $pending_user['meta']['bypass'] = 'yes';
     510    }
     511
    500512    if ( $pending_user ) {
    501513        wporg_update_pending_user( $pending_user );
Note: See TracChangeset for help on using the changeset viewer.