Skip to content

Commit

Permalink
Merge pull request #744 from wpdev10/master
Browse files Browse the repository at this point in the history
releasing update 1.2.10
  • Loading branch information
wpdev10 authored May 15, 2024
2 parents 4f8bb1b + b6b7e34 commit 6776b92
Show file tree
Hide file tree
Showing 29 changed files with 5,297 additions and 5,177 deletions.
4 changes: 3 additions & 1 deletion includes/class-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -2651,6 +2651,8 @@ public function form_input_multiselect( $html, $field, $value, $form_type ) {

$option_values_arr = uwp_string_values_to_options( $field->option_values, true );
$site_title = uwp_get_form_label( $field );
$value = is_array($value) ? $value : esc_attr($value);

// bootstrap
if ( $design_style ) {

Expand All @@ -2661,7 +2663,7 @@ public function form_input_multiselect( $html, $field, $value, $form_type ) {
'name' => esc_attr( $field->htmlvar_name ),
'placeholder' => esc_attr( uwp_get_field_placeholder( $field ) ),
'title' => esc_html( $site_title ),
'value' => esc_attr( $value ),
'value' => $value,
'required' => (bool) $field->is_required,
'validation_text' => $validation_text != '' ? esc_attr( $validation_text ) : esc_attr( $required_msg ),
'validation_pattern' => ! empty( $field->validation_pattern ) ? esc_attr( wp_unslash( $field->validation_pattern ) ) : '',
Expand Down
Binary file modified languages/userswp-en_US.mo
Binary file not shown.
58 changes: 29 additions & 29 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.8\n"
"Project-Id-Version: UsersWP 1.2.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-15 16:53+0530\n"
"PO-Revision-Date: 2024-03-15 16:53+0530\n"
"POT-Creation-Date: 2024-05-15 20:37+0530\n"
"PO-Revision-Date: 2024-05-15 20:37+0530\n"
"Last-Translator: \n"
"Language-Team: AyeCode Ltd <contact@ayecode.io>\n"
"Language: en_US\n"
Expand All @@ -15,7 +15,7 @@ msgstr ""
"_nx:1,2;_x;_ex;esc_attr_e;esc_attr__\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Generator: Poedit 3.0\n"
"X-Generator: Poedit 3.3.2\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: vendor\n"

Expand Down Expand Up @@ -298,8 +298,8 @@ msgstr ""
#: admin/class-uwp-admin-help.php:65
#, php-format
msgid ""
"Should you need help understanding, using, or extending UsersWP <a href="
"\"%1$s\">please read our documentation</a>. You will find all kinds of "
"Should you need help understanding, using, or extending UsersWP <a "
"href=\"%1$s\">please read our documentation</a>. You will find all kinds of "
"resources including snippets, tutorials and much more.,"
msgstr ""

Expand Down Expand Up @@ -327,11 +327,11 @@ msgstr ""
#: admin/class-uwp-admin-help.php:75
#, php-format
msgid ""
"If you find a bug within UsersWP core you can create a ticket via <a href="
"\"%1$s\">Github issues</a>. Ensure you read the <a href=\"%2$s"
"\">contribution guide</a> prior to submitting your report. To help us solve "
"your issue, please be as descriptive as possible and include your <a href="
"\"%3$s\">system status report</a>"
"If you find a bug within UsersWP core you can create a ticket via <a "
"href=\"%1$s\">Github issues</a>. Ensure you read the <a "
"href=\"%2$s\">contribution guide</a> prior to submitting your report. To "
"help us solve your issue, please be as descriptive as possible and include "
"your <a href=\"%3$s\">system status report</a>"
msgstr ""

#: admin/class-uwp-admin-help.php:76
Expand Down Expand Up @@ -1449,7 +1449,7 @@ msgstr ""

#: admin/settings/class-uwp-settings-general.php:71
#: admin/settings/class-uwp-settings-general.php:309
#: includes/class-emails.php:300 includes/class-forms.php:4551
#: includes/class-emails.php:300 includes/class-forms.php:4541
#: includes/class-pages.php:325 templates/bootstrap/forgot.php:66
#: templates/bootstrap/login.php:11 templates/login.php:7
#: templates/login.php:19 widgets/login.php:50 widgets/login.php:141
Expand Down Expand Up @@ -2347,8 +2347,8 @@ msgstr ""
#: admin/views/html-admin-page-addons.php:93
#, php-format
msgid ""
"All of our UsersWP Addons can be found on UsersWP.io here: <a href=\"%s"
"\">UsersWP Addons</a>"
"All of our UsersWP Addons can be found on UsersWP.io here: <a "
"href=\"%s\">UsersWP Addons</a>"
msgstr ""

#: admin/views/html-admin-page-addons.php:96
Expand Down Expand Up @@ -2401,8 +2401,8 @@ msgstr ""
#, php-format
msgid ""
"If you are modifying userswp on a parent theme that you did not build "
"personally we recommend using a child theme. See: <a href=\"%s\" target="
"\"_blank\">How to create a child theme</a>"
"personally we recommend using a child theme. See: <a href=\"%s\" "
"target=\"_blank\">How to create a child theme</a>"
msgstr ""

#: admin/views/html-admin-page-status.php:12
Expand Down Expand Up @@ -2509,7 +2509,7 @@ msgid "New Password"
msgstr ""

#: includes/class-activator.php:537 includes/class-activator.php:579
#: includes/class-forms.php:4293
#: includes/class-forms.php:4283
msgid "Confirm Password"
msgstr ""

Expand Down Expand Up @@ -2694,11 +2694,11 @@ msgstr ""
msgid "Uploaded files need to be one of the following file types: %s"
msgstr ""

#: includes/class-files.php:354
#: includes/class-files.php:374
msgid "Remove Image"
msgstr ""

#: includes/class-files.php:363
#: includes/class-files.php:383
msgid "Remove File"
msgstr ""

Expand Down Expand Up @@ -2929,39 +2929,39 @@ msgstr ""
msgid "Clear field"
msgstr ""

#: includes/class-forms.php:3159
#: includes/class-forms.php:3161
msgid "Username or Email"
msgstr ""

#: includes/class-forms.php:3482
#: includes/class-forms.php:3484
msgid "Please enter a valid URL including https://"
msgstr ""

#: includes/class-forms.php:3531
#: includes/class-forms.php:3533
msgid "Please enter a valid URL including http://"
msgstr ""

#: includes/class-forms.php:3845
#: includes/class-forms.php:3847
#, php-format
msgid ""
"By using this form I agree to the storage and handling of my data by this "
"website. View our %s %s %s."
msgstr ""

#: includes/class-forms.php:3932
#: includes/class-forms.php:3934
#, php-format
msgid "I accept the %s %s %s."
msgstr ""

#: includes/class-forms.php:4211
#: includes/class-forms.php:4201
msgid "Site Default"
msgstr ""

#: includes/class-forms.php:4376
#: includes/class-forms.php:4366
msgid "Confirm Email"
msgstr ""

#: includes/class-forms.php:4529
#: includes/class-forms.php:4519
msgid "Privacy settings updated successfully."
msgstr ""

Expand Down Expand Up @@ -4101,8 +4101,8 @@ msgstr ""
#, php-format
msgid ""
"You can not access this page directly. Follow the password reset link you "
"received in your email. To request new password reset link <a href=\"%s"
"\">visit here</a>."
"received in your email. To request new password reset link <a "
"href=\"%s\">visit here</a>."
msgstr ""

#: templates/bootstrap/user-avatar.php:34 templates/profile-header.php:70
Expand Down
7 changes: 6 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.5
Stable tag: 1.2.9
Stable tag: 1.2.10
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -148,6 +148,11 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver

= 1.2.10 =
* Rotate image when required before crop image - CHANGED
* Multiselect selected values not showing in account form - FIXED
* Account page title showing even form_title set to 0 - FIXED
* Profile page shortcode [uwp_profile_tabs output="body"] not displaying content if used separately - FIXED
* Super Duper updated to v1.1.39 - UPDATED
* AyeCode UI updated to v0.2.14 - UPDATED

= 1.2.9 =
* JS error breaks Country field in register form - FIXED
Expand Down
2 changes: 1 addition & 1 deletion templates/bootstrap/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div class="col-lg-9">
<div class="pl-lg-4 pl-sm-0 h-100 pt-5 pb-lg-0 pb-3">
<?php
$form_title = ! empty( $args['form_title'] ) ? esc_attr__( $args['form_title'], 'userswp' ) : __( 'Edit Account', 'userswp' );
$form_title = ! empty( $args['form_title'] ) || $args['form_title']=='0' ? esc_attr__( $args['form_title'], 'userswp' ) : __( 'Edit Account', 'userswp' );

if ( isset( $_GET['type'] ) ) {
$type = strip_tags( esc_sql( $_GET['type'] ) );
Expand Down
64 changes: 33 additions & 31 deletions templates/bootstrap/profile-tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,37 @@
return;
}

$head_output = $active_tab_content = '';
if(!empty($tabs_array)) {
foreach ($tabs_array as $tab) {
$tab_id = $tab['tab_key'];
$tab_url = uwp_build_profile_tab_url($user->ID, $tab_id, false);

$active = $active_tab == $tab_id ? ' active border-bottom border-primary border-width-2' : '';

if ($active_tab == $tab_id) {
$active_tab_content = $tab['tab_content_rendered'];
}

$append_hash = apply_filters('uwp_add_tab_content_hashtag', true, $tab, $user);
$head_output .= '
<li id="uwp-profile-'.esc_attr( $tab_id ).'"
class="nav-item '.esc_attr( $active ).' list-unstyled m-0">
';

$content = '<span class="uwp-profile-tab-label uwp-profile-'.esc_attr( $tab_id ).'-label">'.esc_html__($tab['tab_name'], 'userswp').'</span>';
$head_output .= aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'type' => 'a',
'href' => $append_hash ? esc_url($tab_url).'#tab-content' : esc_url($tab_url),
'class' => 'nav-link',
'icon' => esc_attr($tab['tab_icon']),
'content' => $content, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
));

$head_output .= '</li>';
}
}

if($output === '' || $output=='head'){
?>
<nav class="navbar navbar-expand-xl navbar-light bg-white mb-4 p-xl-0 <?php echo esc_attr($greedy_menu_class); ?>">
Expand All @@ -25,35 +56,7 @@
<div class="collapse navbar-collapse" id="uwp-profile-tabs-nav">
<ul class="navbar-nav flex-wrap m-0 list-unstyled">
<?php
if(!empty($tabs_array)) {
foreach ($tabs_array as $tab) {
$tab_id = $tab['tab_key'];
$tab_url = uwp_build_profile_tab_url($user->ID, $tab_id, false);

$active = $active_tab == $tab_id ? ' active border-bottom border-primary border-width-2' : '';

if ($active_tab == $tab_id) {
$active_tab_content = $tab['tab_content_rendered'];
}

$append_hash = apply_filters('uwp_add_tab_content_hashtag', true, $tab, $user);
?>
<li id="uwp-profile-<?php echo esc_attr( $tab_id ); ?>"
class="nav-item <?php echo esc_attr( $active ); ?> list-unstyled m-0">
<?php
$content = '<span class="uwp-profile-tab-label uwp-profile-'.esc_attr( $tab_id ).'-label">'.esc_html__($tab['tab_name'], 'userswp').'</span>';
echo aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'type' => 'a',
'href' => $append_hash ? esc_url($tab_url).'#tab-content' : esc_url($tab_url),
'class' => 'nav-link',
'icon' => esc_attr($tab['tab_icon']),
'content' => $content, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
));
?>
</li>
<?php
}
}
echo $head_output;
?>
</ul>
</div>
Expand All @@ -68,8 +71,7 @@ class="nav-item <?php echo esc_attr( $active ); ?> list-unstyled m-0">
<div id="tab-content" class="uwp-profile-content">
<div class="uwp-profile-entries">
<?php

echo $active_tab_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo $active_tab_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</div>
</div>
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.9
Version: 1.2.10
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.9' );
define( 'USERSWP_VERSION', '1.2.10' );
}

if ( ! defined( 'USERSWP_PATH' ) ) {
Expand Down
18 changes: 18 additions & 0 deletions vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

// autoload.php @generated by Composer

if (PHP_VERSION_ID < 50600) {
if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error');
}
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
if (!ini_get('display_errors')) {
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
fwrite(STDERR, $err);
} elseif (!headers_sent()) {
echo $err;
}
}
trigger_error(
$err,
E_USER_ERROR
);
}

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitf3d2d3b01d25e99f52c2a4d35c24b58c::getLoader();
2 changes: 1 addition & 1 deletion vendor/ayecode/wp-ayecode-ui/ayecode-ui-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
add_action('after_setup_theme', function () {
global $ayecode_ui_version,$ayecode_ui_file_key;
$this_version = "0.2.10";
$this_version = "0.2.14";
if(empty($ayecode_ui_version) || version_compare($this_version , $ayecode_ui_version, '>')){
$ayecode_ui_version = $this_version ;
$ayecode_ui_file_key = wp_hash( __FILE__ );
Expand Down
21 changes: 18 additions & 3 deletions vendor/ayecode/wp-ayecode-ui/change-log.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
= 0.2.10 - TBD =
= 0.2.14 - 2024-05-09 =
* Label type top don't have margin to label - FIXED
* Improvements for aui_lightbox_embed() function - CHANGED

= 0.2.13 - 2024-05-02 =
* BS4 lightbox displays blurred image - FIXED
* Fix PHP notice in HEX to RGB conversion - FIXED
* Outline buttons not using correct text color when user adjusted colors in block themes - FIXED

= 0.2.12 - 2024-04-25 =
* Enhance BS4 to BS5 class replacements - CHANGED

= 0.2.11 - 2024-04-11 =
* .link-* classes not respecting editor color change - FIXED

= 0.2.10 - 2024-04-04 =
* Safari wp-admin plupload overflow issue on hidden input causing horizontal scroll issue - FIXED

= 0.2.9 - 2024-03-19 =
Expand Down Expand Up @@ -38,7 +53,7 @@

= 0.1.97 =
* BS5 removed mb-3 on slider as it was causing padding issues on GD when mixed Single and Slider archives - CHANGED
* image cover classes are nto vertically centering image - FIXED
* image cover classes are not vertically centering image - FIXED

= 0.1.96 =
* BS4 to BS5 font italic class is not working - FIXED
Expand Down Expand Up @@ -118,7 +133,7 @@

= 0.1.73 =
* Conditional field multiselect field don't match for specific option - FIXED
* Allow to run conditionl fields on custom event trigger - ADDED
* Allow to run conditional fields on custom event trigger - ADDED

= 0.1.72 =
* Input now has "size" option: sm, small, lg, large - ADDED
Expand Down
Loading

0 comments on commit 6776b92

Please sign in to comment.