diff --git a/admin/settings.php b/admin/settings.php index 9f3c9fb..27a85ab 100755 --- a/admin/settings.php +++ b/admin/settings.php @@ -54,7 +54,7 @@ function uwp_recaptcha_addons_get_settings( $settings, $current_section ) { array( 'id' => 'enable_recaptcha_in_register_form', 'name' => __( 'Enable ReCaptcha in', 'uwp-recaptcha' ), - 'desc' => __( 'UsersWP Register Form.', 'uwp-recaptcha' ), + 'desc' => __( 'UsersWP Register Form', 'uwp-recaptcha' ), 'type' => 'checkbox', 'default' => '1', 'class' => 'uwp_label_inline', @@ -62,7 +62,7 @@ function uwp_recaptcha_addons_get_settings( $settings, $current_section ) { array( 'id' => 'enable_recaptcha_in_login_form', 'name' => '', - 'desc' => __( 'UsersWP Login Form.', 'uwp-recaptcha' ), + 'desc' => __( 'UsersWP Login Form', 'uwp-recaptcha' ), 'type' => 'checkbox', 'default' => '1', 'class' => 'uwp_label_inline', @@ -70,7 +70,7 @@ function uwp_recaptcha_addons_get_settings( $settings, $current_section ) { array( 'id' => 'enable_recaptcha_in_forgot_form', 'name' => '', - 'desc' => __( 'UsersWP Forgot Form.', 'uwp-recaptcha' ), + 'desc' => __( 'UsersWP Forgot Form', 'uwp-recaptcha' ), 'type' => 'checkbox', 'default' => '1', 'class' => 'uwp_label_inline', @@ -78,7 +78,7 @@ function uwp_recaptcha_addons_get_settings( $settings, $current_section ) { array( 'id' => 'enable_recaptcha_in_account_form', 'name' => '', - 'desc' => __( 'UsersWP Account Form.', 'uwp-recaptcha' ), + 'desc' => __( 'UsersWP Account Form', 'uwp-recaptcha' ), 'type' => 'checkbox', 'default' => '1', 'class' => 'uwp_label_inline', @@ -86,7 +86,7 @@ function uwp_recaptcha_addons_get_settings( $settings, $current_section ) { array( 'id' => 'enable_recaptcha_in_wp_login_form', 'name' => '', - 'desc' => __( 'WP Login Form.', 'uwp-recaptcha' ), + 'desc' => __( 'WordPress Login Form', 'uwp-recaptcha' ), 'type' => 'checkbox', 'default' => '1', 'class' => 'uwp_label_inline', @@ -94,7 +94,7 @@ function uwp_recaptcha_addons_get_settings( $settings, $current_section ) { array( 'id' => 'enable_recaptcha_in_wp_register_form', 'name' => '', - 'desc' => __( 'WP Register Form.', 'uwp-recaptcha' ), + 'desc' => __( 'WordPress Registeration Form', 'uwp-recaptcha' ), 'type' => 'checkbox', 'default' => '1', 'class' => 'uwp_label_inline', diff --git a/includes/class-uwp-recaptcha.php b/includes/class-uwp-recaptcha.php index 6a0151c..18c1a33 100644 --- a/includes/class-uwp-recaptcha.php +++ b/includes/class-uwp-recaptcha.php @@ -113,13 +113,11 @@ public function admin_enqueue_scripts(){ public function enqueue_scripts() { if (!wp_script_is('uwp_recaptcha_js_api', 'registered')) { - if ($GLOBALS['pagenow'] === 'wp-login.php' || is_uwp_page() || is_uwp_page('frontend_post_page')) { - $language = uwp_recaptcha_language(); + $language = uwp_recaptcha_language(); - wp_register_script('uwp_recaptcha_js_api', 'https://www.google.com/recaptcha/api.js?onload=uwp_recaptcha_onload&hl=' . $language . '&render=explicit', array('jquery'), $this->version, true); + wp_register_script('uwp_recaptcha_js_api', 'https://www.google.com/recaptcha/api.js?onload=uwp_recaptcha_onload&hl=' . $language . '&render=explicit', array('jquery'), $this->version, true); - add_action('wp_footer', array($this, 'add_scripts')); - } + add_action('wp_footer', array($this, 'add_scripts')); } } diff --git a/readme.txt b/readme.txt index 5e9fa15..fd2b276 100644 --- a/readme.txt +++ b/readme.txt @@ -52,6 +52,9 @@ TBA == Changelog == += 1.0.5 = +* Recaptcha not working on login widget on pages other than UWP pages - FIXED + = 1.0.4 = * Integrate new settings interface - CHANGED * Recaptcha size compact for mobile compatibility - ADDED