Skip to content

Commit

Permalink
Merge pull request #756 from kprajapatii/master
Browse files Browse the repository at this point in the history
1.2.16
  • Loading branch information
kprajapatii authored Aug 1, 2024
2 parents 2540609 + 510420f commit 7f853f3
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 21 deletions.
2 changes: 1 addition & 1 deletion admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
Expand Down
2 changes: 1 addition & 1 deletion includes/class-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function show_admin_notices() {
if ( $updater->is_updating() || ! empty( $_GET['force_sync_data'] ) ) {
?>
<div id="message" class="updated notice notice-alt uwp-message">
<p><strong><?php esc_attr_e( 'UsersWP data sync', 'userswp' ); ?></strong> &#8211; <?php esc_attr_e( 'Users data sync is running in the background.', 'userswp' ); ?> <a href="<?php echo esc_url( add_query_arg( 'force_sync_data', 'true', admin_url( 'admin.php?page=userswp' ) ) ); ?>"><?php esc_attr_e( 'Taking a while? Click here to run it now.', 'userswp' ); ?></a></p>
<p><strong><?php esc_attr_e( 'UsersWP data sync', 'userswp' ); ?></strong> &#8211; <?php esc_attr_e( 'Users data sync is running in the background.', 'userswp' ); ?> <a href="<?php echo esc_url( add_query_arg( array( 'force_sync_data' => 'true', '_nonce' => wp_create_nonce( 'force_sync_data' ) ), admin_url( 'admin.php?page=userswp' ) ) ); ?>"><?php esc_attr_e( 'Taking a while? Click here to run it now.', 'userswp' ); ?></a></p>
</div>
<?php
}
Expand Down
Binary file modified languages/userswp-en_US.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions languages/userswp-en_US.po
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
msgid ""
msgstr ""
"Project-Id-Version: UsersWP 1.2.15\n"
"Project-Id-Version: UsersWP 1.2.16\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-31 12:44+0530\n"
"PO-Revision-Date: 2024-07-31 12:44+0530\n"
"POT-Creation-Date: 2024-08-01 21:50+0530\n"
"PO-Revision-Date: 2024-08-01 21:50+0530\n"
"Last-Translator: \n"
"Language-Team: AyeCode Ltd <contact@ayecode.io>\n"
"Language: en_US\n"
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions userswp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand All @@ -24,7 +24,7 @@
}

if ( ! defined( 'USERSWP_VERSION' ) ) {
define( 'USERSWP_VERSION', '1.2.15' );
define( 'USERSWP_VERSION', '1.2.16' );
}

if ( ! defined( 'USERSWP_PATH' ) ) {
Expand Down
3 changes: 3 additions & 0 deletions vendor/ayecode/wp-ayecode-ui/change-log.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
12 changes: 9 additions & 3 deletions vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AyeCode_UI_Settings {
*
* @var string
*/
public $version = '0.2.21';
public $version = '0.2.22';

/**
* Class textdomain.
Expand Down Expand Up @@ -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);
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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"
},
Expand Down
6 changes: 3 additions & 3 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 7f853f3

Please sign in to comment.