nikolaynesov
Forum Replies Created
-
Hi,
Unfortunatelly I had to fix the issue manually.
I hope it will be fixed by author in next update and my code is helpful.In plugins/no-captcha-recaptcha-for-woocommerce/login.php
replace line 8 with:
if ( array_key_exists ( 'captcha_wc_login', self::$plugin_options ) && self::$plugin_options['captcha_wc_login'] == 'yes' ) {In plugins/no-captcha-recaptcha-for-woocommerce/lost-password.php
replace line 11 with:if ( array_key_exists( 'captcha_wc_lost_password', self::$plugin_options ) && self::$plugin_options['captcha_wc_lost_password'] == 'yes' ) {Forum: Plugins
In reply to: [LH User Taxonomies] Undefined variable: ids in lh-user-taxonomies.phpSome more updates near line 422:
if (!isset($ids) || empty($ids)){ $ids = $new_ids; } else { $ids = array_intersect($ids, $new_ids); }Forum: Plugins
In reply to: [LH User Taxonomies] Undefined variable: ids in lh-user-taxonomies.phpCan you also update function
save_profileto:public function save_profile($user_id) { foreach(self::$taxonomies as $key=>$taxonomy) { // Check the current user can edit this user and assign terms for this taxonomy if(!current_user_can('edit_user', $user_id) && current_user_can($taxonomy->cap->assign_terms)) return false; if (isset($_POST[$key])) { if (is_array($_POST[$key])){ $term = $_POST[$key]; wp_set_object_terms($user_id, $term, $key, false); } else { $term = esc_attr($_POST[$key]); wp_set_object_terms($user_id, array($term), $key, false); } } // Save the data clean_object_term_cache($user_id, $key); } }Otherwise it will cause an error for any custom registration form without all the taxonomies for ex. woocommerce reg form.
Thanks.
Forum: Plugins
In reply to: [LH User Taxonomies] Undefined variable: ids in lh-user-taxonomies.phpCan you also change
$_GET['taxonomy']on line 162
to
$_REQUEST['taxonomy']
(tested)as in casuses an error of undefined index.
Thanks.