Changeset 4943 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php
- Timestamp:
- 02/19/2017 04:54:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php
r4942 r4943 7 7 8 8 $verify = array( 9 10 11 9 'secret' => RECAPTCHA_PRIVKEY, 10 'remoteip' => $_SERVER['REMOTE_ADDR'], 11 'response' => $_POST['g-recaptcha-response'], 12 12 ); 13 13 14 14 $resp = wp_remote_post( 'https://www.google.com/recaptcha/api/siteverify', array( 'body' => $verify ) ); 15 15 16 16 if ( is_wp_error( $resp ) || 200 != wp_remote_retrieve_response_code( $resp ) ) {
Note: See TracChangeset
for help on using the changeset viewer.