Skip to content

Commit 3a81282

Browse files
authored
Merge pull request #892 from kprajapatii/master
1.2.59
2 parents 6ff762e + 9233975 commit 3a81282

11 files changed

Lines changed: 133 additions & 102 deletions

File tree

languages/userswp-en_US.mo

-2 Bytes
Binary file not shown.

languages/userswp-en_US.po

Lines changed: 101 additions & 70 deletions
Large diffs are not rendered by default.

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://www.ko-fi.com/stiofan
44
Tags: login form, registration, registration form, user profile, user registration, members, membership
55
Requires at least: 6.1
66
Tested up to: 6.9
7-
Stable tag: 1.2.58
7+
Stable tag: 1.2.59
88
License: GPLv3
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -152,7 +152,7 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver
152152

153153
== Changelog ==
154154

155-
= 1.2.59 - 2026-03-TBD =
155+
= 1.2.59 - 2026-03-30 =
156156
* Improve image validation during the cropping process - FIXED/SECURITY
157157
* Improper Access Control fixes - FIXED/SECURITY
158158

userswp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: UsersWP
44
Plugin URI: https://userswp.io/
55
Description: The only lightweight user profile plugin for WordPress. UsersWP features front end user profile, users directory, a registration and a login form.
6-
Version: 1.2.58
6+
Version: 1.2.59
77
Author: AyeCode Ltd
88
Author URI: https://userswp.io
99
License: GPL-2.0+
@@ -24,7 +24,7 @@
2424
}
2525

2626
if ( ! defined( 'USERSWP_VERSION' ) ) {
27-
define( 'USERSWP_VERSION', '1.2.58' );
27+
define( 'USERSWP_VERSION', '1.2.59' );
2828
}
2929

3030
if ( ! defined( 'USERSWP_PATH' ) ) {

vendor/ayecode/wp-ayecode-ui/ayecode-ui-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
add_action('after_setup_theme', function () {
1717
global $ayecode_ui_version,$ayecode_ui_file_key;
18-
$this_version = "0.2.44";
18+
$this_version = "0.2.45";
1919
if(empty($ayecode_ui_version) || version_compare($this_version , $ayecode_ui_version, '>')){
2020
$ayecode_ui_version = $this_version ;
2121
$ayecode_ui_file_key = wp_hash( __FILE__ );

vendor/ayecode/wp-ayecode-ui/change-log.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
= 0.2.45 - 2026-03-26 =
2+
* Comma in image srcset url may break image lightbox popup - FIXED
3+
14
= 0.2.44 - 2026-03-05 =
25
* BS5 conversion breaks inline padding and margin styles - FIXED
36
* Checks for the tooltip & popover functions before using to prevent errors - FIXED

vendor/ayecode/wp-ayecode-ui/example-plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: AyeCode UI
44
Plugin URI: https://ayecode.io/
55
Description: This is an example plugin to test AyeCode UI Quickly.
6-
Version: 0.2.44
6+
Version: 0.2.45
77
Author: AyeCode Ltd
88
Author URI: https://userswp.io
99
License: GPL-2.0+

vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class AyeCode_UI_Settings {
3535
*
3636
* @var string
3737
*/
38-
public $version = '0.2.44';
38+
public $version = '0.2.45';
3939

4040
/**
4141
* Class textdomain.

vendor/ayecode/wp-ayecode-ui/includes/inc/bs5-js.php

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,8 @@ function init_nav_sub_menus(){
599599
} );
600600

601601
});
602-
603602
}
604603

605-
606604
/**
607605
* Open a lightbox when an embed item is clicked.
608606
*/
@@ -665,8 +663,6 @@ function aui_lightbox_embed($link,ele){
665663
$carousel += '</ol>';
666664
}
667665

668-
669-
670666
// items
671667
$i = 0;
672668
$rtl_class = '<?php echo is_rtl() ? 'justify-content-end' : 'justify-content-start'; ?>';
@@ -685,12 +681,17 @@ function aui_lightbox_embed($link,ele){
685681
if (srcset) {
686682
var sources = srcset.split(',')
687683
.map(s => {
688-
var parts = s.trim().split(' ');
689-
return {
690-
width: parseInt(parts[1].replace('w', '')),
691-
descriptor: parts[1].replace('w', 'px') // Ensuring the descriptor is in pixels
692-
};
684+
// Using regex /\s+/ handles multiple spaces between the URL and width
685+
var parts = s.trim().split(/\s+/).filter(Boolean);
686+
if (parts.length >= 2) {
687+
return {
688+
width: parseInt(parts[1].replace('w', '')),
689+
descriptor: parts[1].replace('w', 'px') // Ensuring the descriptor is in pixels
690+
};
691+
}
692+
return null;
693693
})
694+
.filter(item => item !== null) // Remove any empty entries
694695
.sort((a, b) => b.width - a.width); // Sort from largest to smallest for proper descending order
695696

696697
// Build the sizes string
@@ -703,10 +704,8 @@ function aui_lightbox_embed($link,ele){
703704
return `(max-width: ${source.width - 1}px) ${array[index - 1].descriptor}`;
704705
}
705706
}).reverse().join(', '); // Reverse to start from smallest to largest for logical order
706-
707707
}
708708

709-
710709
var img = href ? jQuery(a).find('img').clone().attr('src', href ).attr('sizes', sizes ).removeClass().addClass('mx-auto d-block w-auto rounded').css({'max-height':css_height,'max-width':'98%'}).get(0).outerHTML : jQuery(a).find('img').clone().removeClass().addClass('mx-auto d-block w-auto rounded').css({'max-height':css_height,'max-width':'98%'}).get(0).outerHTML;
711710
$carousel += img;
712711
// captions
@@ -736,11 +735,9 @@ function aui_lightbox_embed($link,ele){
736735

737736
$carousel += '</div></div>';
738737
$i++;
739-
740738
});
741739
$carousel += '</div>';
742740

743-
744741
// next/prev indicators
745742
if($images.length > 1) {
746743
$carousel += '<a class="carousel-control-prev" href="#aui-embed-slider-modal" role="button" data-bs-slide="prev">';

vendor/composer/installed.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@
5959
},
6060
{
6161
"name": "ayecode/wp-ayecode-ui",
62-
"version": "0.2.44",
63-
"version_normalized": "0.2.44.0",
62+
"version": "0.2.45",
63+
"version_normalized": "0.2.45.0",
6464
"source": {
6565
"type": "git",
6666
"url": "https://github.com/AyeCode/wp-ayecode-ui.git",
67-
"reference": "8a2cb97147c889473e611e8bb240c8b658b87237"
67+
"reference": "a68d22a3bc87a85dd12a519dee52366b8a7e4321"
6868
},
6969
"dist": {
7070
"type": "zip",
71-
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/8a2cb97147c889473e611e8bb240c8b658b87237",
72-
"reference": "8a2cb97147c889473e611e8bb240c8b658b87237",
71+
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/a68d22a3bc87a85dd12a519dee52366b8a7e4321",
72+
"reference": "a68d22a3bc87a85dd12a519dee52366b8a7e4321",
7373
"shasum": ""
7474
},
75-
"time": "2026-03-05T14:06:58+00:00",
75+
"time": "2026-03-26T12:08:53+00:00",
7676
"type": "library",
7777
"installation-source": "dist",
7878
"autoload": {
@@ -101,7 +101,7 @@
101101
],
102102
"support": {
103103
"issues": "https://github.com/AyeCode/wp-ayecode-ui/issues",
104-
"source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.44"
104+
"source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.45"
105105
},
106106
"install-path": "../ayecode/wp-ayecode-ui"
107107
},

0 commit comments

Comments
 (0)