Changeset 11855
- Timestamp:
- 05/19/2022 03:39:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php
r11621 r11855 75 75 'registration_ip' => $_SERVER['REMOTE_ADDR'], // Spam & fraud control. Will be discarded after the account is created. 76 76 ), 77 'scores' => array() 77 'scores' => array(), 78 'cleared' => 0, 78 79 ); 79 80 … … 103 104 $passes_block_words 104 105 ); 106 107 // Run a filter on the cleared status.. 108 if ( ! apply_filters( 'wporg_login_registration_check_user', true, $pending_user ) ) { 109 $pending_user['cleared'] = false; 110 } 105 111 106 112 $inserted = wporg_update_pending_user( $pending_user ); … … 401 407 } 402 408 403 // If not manually approved, check against block_words .409 // If not manually approved, check against block_words, and any other registration checks that are hooked in. 404 410 if ( $pending_user['cleared'] < 2 ) { 405 411 $passes_block_words = wporg_login_check_against_block_words( $pending_user ); 406 412 if ( ! $passes_block_words ) { 413 $pending_user['cleared'] = 0; 414 } 415 416 // Check the filter. 417 if ( ! apply_filters( 'wporg_login_registration_check_user', true, $pending_user ) ) { 407 418 $pending_user['cleared'] = 0; 408 419 }
Note: See TracChangeset
for help on using the changeset viewer.