Changeset 5143
- Timestamp:
- 03/10/2017 05:54:34 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php
r4943 r5143 7 7 8 8 $verify = array( 9 'secret' => RECAPTCHA_ PRIVKEY,9 'secret' => RECAPTCHA_INVIS_PRIVKEY, 10 10 'remoteip' => $_SERVER['REMOTE_ADDR'], 11 11 'response' => $_POST['g-recaptcha-response'], -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
r4954 r5143 75 75 function wporg_login_register_scripts() { 76 76 wp_register_script( 'recaptcha-api', 'https://www.google.com/recaptcha/api.js', array(), '2' ); 77 wp_add_inline_script( 'recaptcha-api', 'function onSubmit(token) { document.getElementById("registerform").submit(); }' ); 77 78 78 79 wp_register_script( 'wporg-registration', get_template_directory_uri() . '/js/registration.js', array( 'recaptcha-api', 'jquery' ), '20170219' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register.php
r4952 r5143 82 82 </label> 83 83 </p> 84 85 <p class="login-recaptcha">86 <div class="g-recaptcha" data-sitekey="<?php echo esc_attr( RECAPTCHA_PUBKEY ); ?>"></div>87 </p>88 84 <?php 89 85 if ( $error_recapcha_status ) { … … 93 89 94 90 <p class="login-submit"> 95 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary" value="<?php esc_attr_e( 'Create Account', 'wporg-login' ); ?>" />91 <input data-sitekey="<?php echo esc_attr( RECAPTCHA_INVIS_PUBKEY ); ?>" data-callback='onSubmit' type="submit" name="wp-submit" id="wp-submit" class="g-recaptcha button button-primary" value="<?php esc_attr_e( 'Create Account', 'wporg-login' ); ?>" /> 96 92 </p> 97 93
Note: See TracChangeset
for help on using the changeset viewer.