diff --git a/admin/class-admin.php b/admin/class-admin.php index 1b9331dd..0ff228e4 100644 --- a/admin/class-admin.php +++ b/admin/class-admin.php @@ -81,7 +81,7 @@ public function activation_redirect() { exit; } - if ( ! empty( $_GET['force_sync_data'] ) && current_user_can( 'manage_options' ) ) { + if ( ! empty( $_GET['force_sync_data'] ) && ! empty( $_GET['_nonce'] ) && wp_verify_nonce( sanitize_text_field( $_GET['_nonce'] ), 'force_sync_data' ) && current_user_can( 'manage_options' ) ) { $blog_id = get_current_blog_id(); do_action( 'wp_' . $blog_id . '_uwp_updater_cron' ); wp_safe_redirect( admin_url( 'admin.php?page=userswp' ) ); diff --git a/includes/class-notices.php b/includes/class-notices.php index 90a10d24..61fc60a7 100644 --- a/includes/class-notices.php +++ b/includes/class-notices.php @@ -111,7 +111,7 @@ public function show_admin_notices() { if ( $updater->is_updating() || ! empty( $_GET['force_sync_data'] ) ) { ?>
-

+

\n" "Language: en_US\n" diff --git a/readme.txt b/readme.txt index a5087ff6..15177fd4 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.ko-fi.com/stiofan Tags: login form, registration, registration form, user profile, user registration, members, membership Requires at least: 4.9 Tested up to: 6.6 -Stable tag: 1.2.15 +Stable tag: 1.2.16 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -146,6 +146,9 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver == Changelog == += 1.2.16 - 2024-08-01 = +* Secure synchronize data request during install - SECURITY + = 1.2.15 - 2024-07-31 = * Allow admin login redirect based on role base login redirect setting for admin role instead of force redirecting to wp-admin - FIXED * Logged in non admin user can force synchronize data - SECURITY diff --git a/userswp.php b/userswp.php index e88ec85c..a49011b8 100644 --- a/userswp.php +++ b/userswp.php @@ -3,7 +3,7 @@ Plugin Name: UsersWP Plugin URI: https://userswp.io/ Description: The only lightweight user profile plugin for WordPress. UsersWP features front end user profile, users directory, a registration and a login form. -Version: 1.2.15 +Version: 1.2.16 Author: AyeCode Ltd Author URI: https://userswp.io License: GPL-2.0+ @@ -24,7 +24,7 @@ } if ( ! defined( 'USERSWP_VERSION' ) ) { - define( 'USERSWP_VERSION', '1.2.15' ); + define( 'USERSWP_VERSION', '1.2.16' ); } if ( ! defined( 'USERSWP_PATH' ) ) { diff --git a/vendor/ayecode/wp-ayecode-ui/change-log.txt b/vendor/ayecode/wp-ayecode-ui/change-log.txt index 7b0af1ae..6bb15acc 100644 --- a/vendor/ayecode/wp-ayecode-ui/change-log.txt +++ b/vendor/ayecode/wp-ayecode-ui/change-log.txt @@ -1,3 +1,6 @@ += 0.2.22 - 2024-08-01 = +* Conditional field don't reset field value on hide element - FIXED + = 0.2.21 - 2024-07-31 = * JS error on FSE theme edit template part page - FIXED diff --git a/vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php b/vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php index c6fece14..9c6eeb68 100644 --- a/vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php +++ b/vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php @@ -35,7 +35,7 @@ class AyeCode_UI_Settings { * * @var string */ - public $version = '0.2.21'; + public $version = '0.2.22'; /** * Class textdomain. @@ -3050,16 +3050,22 @@ function aui_cf_field_apply_action($el, rule, isTrue) { var $destEl = jQuery('[data-rule-key="' + rule.key + '"]'); if (rule.action === 'show' && isTrue) { - if ($destEl.is(':hidden')) { + if ($destEl.is(':hidden') && !$destEl.hasClass('aui-cf-skip-reset')) { aui_cf_field_reset_default_value($destEl); } aui_cf_field_show_element($destEl); } else if (rule.action === 'show' && !isTrue) { + if (!$destEl.is(':hidden') && !$destEl.hasClass('aui-cf-skip-reset')) { + aui_cf_field_reset_default_value($destEl); + } aui_cf_field_hide_element($destEl); } else if (rule.action === 'hide' && isTrue) { + if (!$destEl.is(':hidden') && !$destEl.hasClass('aui-cf-skip-reset')) { + aui_cf_field_reset_default_value($destEl); + } aui_cf_field_hide_element($destEl); } else if (rule.action === 'hide' && !isTrue) { - if ($destEl.is(':hidden')) { + if ($destEl.is(':hidden') && !$destEl.hasClass('aui-cf-skip-reset')) { aui_cf_field_reset_default_value($destEl); } aui_cf_field_show_element($destEl); diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 2d262983..bff0ef43 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -59,20 +59,20 @@ }, { "name": "ayecode/wp-ayecode-ui", - "version": "0.2.21", - "version_normalized": "0.2.21.0", + "version": "0.2.22", + "version_normalized": "0.2.22.0", "source": { "type": "git", "url": "https://github.com/AyeCode/wp-ayecode-ui.git", - "reference": "d1bda4d3a6d51cef412beea914201c7f1ade26fd" + "reference": "42f271602a3ce6b1425dbb7481fcf7ac561250a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/d1bda4d3a6d51cef412beea914201c7f1ade26fd", - "reference": "d1bda4d3a6d51cef412beea914201c7f1ade26fd", + "url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/42f271602a3ce6b1425dbb7481fcf7ac561250a3", + "reference": "42f271602a3ce6b1425dbb7481fcf7ac561250a3", "shasum": "" }, - "time": "2024-07-31T06:18:15+00:00", + "time": "2024-08-01T14:41:58+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -101,7 +101,7 @@ ], "support": { "issues": "https://github.com/AyeCode/wp-ayecode-ui/issues", - "source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.21" + "source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.22" }, "install-path": "../ayecode/wp-ayecode-ui" }, diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 19bf9fd6..5e1beff7 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -20,9 +20,9 @@ 'dev_requirement' => false, ), 'ayecode/wp-ayecode-ui' => array( - 'pretty_version' => '0.2.20', - 'version' => '0.2.20.0', - 'reference' => '1c1e1610ac1005dfbb944ed32656b552b698665d', + 'pretty_version' => '0.2.22', + 'version' => '0.2.22.0', + 'reference' => '42f271602a3ce6b1425dbb7481fcf7ac561250a3', 'type' => 'library', 'install_path' => __DIR__ . '/../ayecode/wp-ayecode-ui', 'aliases' => array(),