From 4da120249a0a7ae9bb3e40ddfdce49338060ee66 Mon Sep 17 00:00:00 2001 From: Kiran Prajapati Date: Tue, 16 Jul 2024 19:59:21 +0530 Subject: [PATCH] 1.2.13 --- includes/class-userswp.php | 101 ++++++++---------- languages/userswp-en_US.mo | Bin 615 -> 616 bytes languages/userswp-en_US.po | 204 ++++++++++++++++++------------------- readme.txt | 4 +- userswp.php | 4 +- 5 files changed, 147 insertions(+), 166 deletions(-) diff --git a/includes/class-userswp.php b/includes/class-userswp.php index 8c959463..8cc99ac1 100755 --- a/includes/class-userswp.php +++ b/includes/class-userswp.php @@ -49,7 +49,6 @@ final class UsersWP { * @since 1.0.0 */ public function __construct() { - $this->plugin_name = USERSWP_NAME; $this->version = USERSWP_VERSION; @@ -90,7 +89,6 @@ public function __construct() { //admin $this->load_form_builder_actions_and_filters( $this->form_builder ); $this->load_menus_actions_and_filters( $this->menus ); - } /** @@ -546,7 +544,6 @@ public function load_files_actions_and_filters( $instance ) { * @param $instance */ public function load_forms_actions_and_filters( $instance ) { - // login add_action( 'wp_ajax_nopriv_uwp_ajax_login_form', array( $instance, 'ajax_login_form' ) ); add_action( 'wp_ajax_nopriv_uwp_ajax_login', array( $instance, 'process_login' ) ); @@ -592,19 +589,13 @@ public function load_forms_actions_and_filters( $instance ) { add_filter( 'uwp_form_input_html_url', array( $instance, 'form_input_url' ), 10, 4 ); add_filter( 'uwp_form_input_html_email', array( $instance, 'form_input_email' ), 10, 4 ); add_filter( 'uwp_form_input_html_password', array( $instance, 'form_input_password' ), 10, 4 ); - add_filter( 'uwp_form_input_html_checkbox_register_gdpr', array( - $instance, - 'form_input_register_gdpr' - ), 10, 4 ); + add_filter( 'uwp_form_input_html_checkbox_register_gdpr', array( $instance, 'form_input_register_gdpr' ), 10, 4 ); add_filter( 'uwp_form_input_html_checkbox_register_tos', array( $instance, 'form_input_register_tos' ), 10, 4 ); // Country select add_filter( 'uwp_form_input_html_select_uwp_country', array( $instance, 'form_input_select_country' ), 10, 4 ); add_filter( 'uwp_form_input_html_phone', array( $instance, 'form_input_phone' ), 10, 4 ); add_filter( 'uwp_form_input_email_email_after', array( $instance, 'register_confirm_email_field' ), 10, 4 ); - add_filter( 'uwp_form_input_password_password_after', array( - $instance, - 'register_confirm_password_field' - ), 10, 4 ); + add_filter( 'uwp_form_input_password_password_after', array( $instance, 'register_confirm_password_field' ), 10, 4 ); add_filter( 'uwp_form_input_html_custom_html', array( $instance, 'form_custom_html' ), 10, 4 ); add_filter( 'uwp_form_input_html_select_uwp_language', array( $instance, 'form_input_uwp_language' ), 10, 4 ); @@ -643,7 +634,7 @@ public function load_pages_actions_and_filters( $instance ) { */ public function load_profile_actions_and_filters( $instance ) { add_action( 'template_redirect', array( $instance, 'redirect_author_page' ), 10, 2 ); - //profile page + // Profile page add_filter( 'query_vars', array( $instance, 'profile_query_vars' ), 10, 1 ); add_action( 'init', array( $instance, 'rewrite_profile_link' ), 10, 1 ); add_filter( 'author_link', array( $instance, 'get_author_link' ), 11, 2 ); @@ -656,10 +647,7 @@ public function load_profile_actions_and_filters( $instance ) { // Popup and crop functions add_filter( 'ajax_query_attachments_args', array( $instance, 'restrict_attachment_display' ) ); - add_action( 'uwp_handle_file_upload_error_checks', array( - $instance, - 'handle_file_upload_error_checks' - ), 10, 4 ); + add_action( 'uwp_handle_file_upload_error_checks', array( $instance, 'handle_file_upload_error_checks' ), 10, 4 ); add_action( 'wp_ajax_uwp_avatar_banner_upload', array( $instance, 'ajax_avatar_banner_upload' ) ); add_action( 'wp_ajax_uwp_ajax_image_crop_popup_form', array( $instance, 'ajax_image_crop_popup_form' ) ); add_action( 'wp_ajax_uwp_ajax_profile_image_remove', array( $instance, 'ajax_profile_image_remove' ) ); @@ -703,7 +691,6 @@ public function load_tables_actions_and_filters( $instance ) { * @param $instance */ public function load_templates_actions_and_filters( $instance ) { - add_action( 'template_redirect', array( $instance, 'change_default_password_redirect' ) ); add_action( 'uwp_template_fields', array( $instance, 'template_fields' ), 10, 2 ); add_action( 'uwp_template_fields', array( $instance, 'template_extra_fields' ), 10, 2 ); @@ -724,7 +711,7 @@ public function load_templates_actions_and_filters( $instance ) { add_filter( 'the_content', array( $instance, 'set_the_content_hook' ), 5, 1 ); add_filter( 'body_class', array( $instance, 'add_body_class' ), 10, 1 ); - // filter the login and register url + // Filter the login and register url add_filter( 'login_url', array( $instance, 'wp_login_url' ), 10, 3 ); add_filter( 'register_url', array( $instance, 'wp_register_url' ), 10, 1 ); add_filter( 'lostpassword_url', array( $instance, 'wp_lostpassword_url' ), 10, 1 ); @@ -733,7 +720,6 @@ public function load_templates_actions_and_filters( $instance ) { if ( defined( 'CT_VERSION' ) ) { add_filter( 'uwp_get_template', array( $instance, 'oxygen_override_template' ), 11, 5 ); } - } /** @@ -764,10 +750,7 @@ public function load_notifications_actions_and_filters( $instance ) { */ public function load_form_builder_actions_and_filters( $instance ) { // Actions - add_action( 'uwp_manage_available_fields_predefined', array( - $instance, - 'manage_available_fields_predefined' - ) ); + add_action( 'uwp_manage_available_fields_predefined', array( $instance, 'manage_available_fields_predefined' ) ); add_action( 'uwp_manage_available_fields_custom', array( $instance, 'manage_available_fields_custom' ) ); add_action( 'uwp_manage_available_fields', array( $instance, 'manage_available_fields' ) ); add_action( 'uwp_manage_selected_fields', array( $instance, 'manage_selected_fields' ) ); @@ -784,30 +767,15 @@ public function load_form_builder_actions_and_filters( $instance ) { add_filter( 'uwp_builder_extra_fields_multiselect', array( $instance, 'builder_extra_fields_smr' ), 10, 4 ); add_filter( 'uwp_builder_extra_fields_select', array( $instance, 'builder_extra_fields_smr' ), 10, 4 ); add_filter( 'uwp_builder_extra_fields_radio', array( $instance, 'builder_extra_fields_smr' ), 10, 4 ); - add_filter( 'uwp_builder_extra_fields_datepicker', array( - $instance, - 'builder_extra_fields_datepicker' - ), 10, 4 ); + add_filter( 'uwp_builder_extra_fields_datepicker', array( $instance, 'builder_extra_fields_datepicker' ), 10, 4 ); add_filter( 'uwp_builder_extra_fields_password', array( $instance, 'builder_extra_fields_password' ), 10, 4 ); add_filter( 'uwp_builder_extra_fields_email', array( $instance, 'builder_extra_fields_email' ), 10, 4 ); add_filter( 'uwp_builder_extra_fields_file', array( $instance, 'builder_extra_fields_file' ), 10, 4 ); add_filter( 'uwp_builder_data_type_text', array( $instance, 'builder_data_type_text' ), 10, 4 ); - add_filter( 'uwp_form_builder_available_fields_head', array( - $instance, - 'register_available_fields_head' - ), 10, 2 ); - add_filter( 'uwp_form_builder_available_fields_note', array( - $instance, - 'register_available_fields_note' - ), 10, 2 ); - add_filter( 'uwp_form_builder_selected_fields_head', array( - $instance, - 'register_selected_fields_head' - ), 10, 2 ); - add_filter( 'uwp_form_builder_selected_fields_note', array( - $instance, - 'register_selected_fields_note' - ), 10, 2 ); + add_filter( 'uwp_form_builder_available_fields_head', array( $instance, 'register_available_fields_head' ), 10, 2 ); + add_filter( 'uwp_form_builder_available_fields_note', array( $instance, 'register_available_fields_note' ), 10, 2 ); + add_filter( 'uwp_form_builder_selected_fields_head', array( $instance, 'register_selected_fields_head' ), 10, 2 ); + add_filter( 'uwp_form_builder_selected_fields_note', array( $instance, 'register_selected_fields_note' ), 10, 2 ); // htmlvar not needed for taxonomy add_filter( 'uwp_builder_htmlvar_name_taxonomy', array( $instance, 'return_empty_string' ), 10, 4 ); // default_value not needed for textarea, html, file, fieldset @@ -858,18 +826,17 @@ public static function register_string( $string, $domain = 'userswp', $name = '' public function register_widgets() { global $pagenow; - $block_widget_init_screens = function_exists('sd_pagenow_exclude') ? sd_pagenow_exclude() : array(); - - if ( is_admin() && $pagenow && in_array($pagenow, $block_widget_init_screens)) { - // don't initiate in these conditions. - }else{ + $block_widget_init_screens = function_exists( 'sd_pagenow_exclude' ) ? sd_pagenow_exclude() : array(); - $exclude = function_exists('sd_widget_exclude') ? sd_widget_exclude() : array(); + if ( is_admin() && $pagenow && in_array( $pagenow, $block_widget_init_screens ) ) { + // Don't initiate in these conditions. + } else { + $exclude = function_exists( 'sd_widget_exclude' ) ? sd_widget_exclude() : array(); $widgets = $this->get_widgets(); - if( !empty($widgets) ){ + if ( ! empty( $widgets ) ) { foreach ( $widgets as $widget ) { - if(!in_array($widget,$exclude)){ + if ( ! in_array( $widget, $exclude ) ) { // SD V1 used to extend the widget class. V2 does not, so we cannot call register widget on it. if ( is_subclass_of( $widget, 'WP_Widget' ) ) { register_widget( $widget ); @@ -924,11 +891,25 @@ public function get_widgets(){ * @return void */ public function load_plugin_textdomain() { + // Determines the current locale. + if ( function_exists( 'determine_locale' ) ) { + $locale = determine_locale(); + } else if ( function_exists( 'get_user_locale' ) ) { + $locale = get_user_locale(); + } else { + $locale = get_locale(); + } - load_plugin_textdomain( 'userswp', false, basename( dirname( dirname( __FILE__ ) ) ) . '/languages' ); + /** + * Filter the locale to use for translations. + */ + $locale = apply_filters( 'plugin_locale', $locale, 'userswp' ); - do_action( 'uwp_loaded' ); + unload_textdomain( 'userswp' ); + load_textdomain( 'userswp', WP_LANG_DIR . '/userswp/userswp-' . $locale . '.mo' ); + load_plugin_textdomain( 'userswp', false, plugin_basename( dirname( USERSWP_PLUGIN_FILE ) ) . '/languages/' ); + do_action( 'uwp_loaded' ); } /** @@ -943,20 +924,20 @@ public function flush_rewrite_rules() { /** * Hide admin bar based on settings. */ - public function hide_admin_bar(){ - + public function hide_admin_bar() { $is_hidden = false; - if(is_user_logged_in()){ - $user = get_userdata(get_current_user_id()); - if($user && isset($user->roles[0])){ + if ( is_user_logged_in() ) { + $user = get_userdata( (int) get_current_user_id() ); + + if ( ! empty( $user ) && isset( $user->roles[0] ) ) { $user_role = $user->roles[0]; $is_hidden = uwp_get_option( 'hide_admin_bar_'.$user_role ); } } - if($is_hidden){ - show_admin_bar(false); + if ( $is_hidden ) { + show_admin_bar( false ); } } } \ No newline at end of file diff --git a/languages/userswp-en_US.mo b/languages/userswp-en_US.mo index e4a8c8d812982a8a005c1fde6bcc6c04826d29b5..b9cbf370955951f3bc590e5a720fe746b3a5ee18 100755 GIT binary patch delta 32 ocmaFP@`7c83ZvdcRTCydgNacFT;{rlW(tPpRtA\n" "Language: en_US\n" @@ -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.3.2\n" +"X-Generator: Poedit 3.0\n" "X-Poedit-SearchPath-0: .\n" "X-Poedit-SearchPathExcluded-0: vendor\n" @@ -298,8 +298,8 @@ msgstr "" #: admin/class-uwp-admin-help.php:65 #, php-format msgid "" -"Should you need help understanding, using, or extending UsersWP please read our documentation. You will find all kinds of " +"Should you need help understanding, using, or extending UsersWP please read our documentation. You will find all kinds of " "resources including snippets, tutorials and much more.," msgstr "" @@ -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 Github issues. Ensure you read the contribution guide prior to submitting your report. To " -"help us solve your issue, please be as descriptive as possible and include " -"your system status report" +"If you find a bug within UsersWP core you can create a ticket via Github issues. Ensure you read the contribution guide prior to submitting your report. To help us solve " +"your issue, please be as descriptive as possible and include your system status report" msgstr "" #: admin/class-uwp-admin-help.php:76 @@ -940,7 +940,7 @@ msgstr "" #: admin/settings/class-formbuilder.php:1890 #: admin/settings/class-formbuilder.php:2107 #: admin/settings/class-uwp-settings-profile-tabs.php:813 -#: admin/settings/class-uwp-settings-user-sorting.php:581 +#: admin/settings/class-uwp-settings-user-sorting.php:589 msgid "Save" msgstr "" @@ -1535,7 +1535,7 @@ msgid "" msgstr "" #: admin/settings/class-uwp-settings-general.php:141 -#: includes/helpers/misc.php:1350 +#: includes/helpers/misc.php:1349 msgid "Please enter valid strong password." msgstr "" @@ -2162,17 +2162,17 @@ msgid "Select privacy for displaying profile tab and content." msgstr "" #: admin/settings/class-uwp-settings-profile-tabs.php:741 -#: includes/class-templates.php:1158 +#: includes/class-templates.php:1157 msgid "Anyone" msgstr "" #: admin/settings/class-uwp-settings-profile-tabs.php:742 -#: includes/class-templates.php:1159 +#: includes/class-templates.php:1158 msgid "Logged in" msgstr "" #: admin/settings/class-uwp-settings-profile-tabs.php:743 -#: includes/class-templates.php:1160 +#: includes/class-templates.php:1159 msgid "Author only" msgstr "" @@ -2197,8 +2197,8 @@ msgstr "" #: admin/settings/class-uwp-settings-profile-tabs.php:1034 #: admin/settings/class-uwp-settings-profile-tabs.php:1037 -#: admin/settings/class-uwp-settings-user-sorting.php:804 -#: admin/settings/class-uwp-settings-user-sorting.php:807 +#: admin/settings/class-uwp-settings-user-sorting.php:812 +#: admin/settings/class-uwp-settings-user-sorting.php:815 msgid "Failed to sort tab items." msgstr "" @@ -2252,15 +2252,15 @@ msgid "" "data when the plugin is deleted." msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:110 +#: admin/settings/class-uwp-settings-user-sorting.php:118 msgid "User Sorting" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:130 +#: admin/settings/class-uwp-settings-user-sorting.php:138 msgid "Available sorting options for users listing and search results" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:151 +#: admin/settings/class-uwp-settings-user-sorting.php:159 msgid "" "Click on any box below to make it appear in the sorting option dropdown on " "users listing and search results. To make a field available here, go to " @@ -2268,77 +2268,77 @@ msgid "" "checkbox saying 'Include this field in sorting options'." msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:172 +#: admin/settings/class-uwp-settings-user-sorting.php:180 msgid "" "List of fields that will appear in users listing and search results sorting " "option dropdown box." msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:193 +#: admin/settings/class-uwp-settings-user-sorting.php:201 msgid "" "Click to expand and view field related settings. You may drag and drop to " "arrange fields order in sorting option dropdown box on users listing and " "search results page." msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:247 upgrade.php:51 +#: admin/settings/class-uwp-settings-user-sorting.php:255 upgrade.php:51 msgid "Newer" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:251 +#: admin/settings/class-uwp-settings-user-sorting.php:259 msgid "Sort by new user registration" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:257 upgrade.php:61 +#: admin/settings/class-uwp-settings-user-sorting.php:265 upgrade.php:61 msgid "Older" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:261 +#: admin/settings/class-uwp-settings-user-sorting.php:269 msgid "Sort by new user registration in descending order" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:267 +#: admin/settings/class-uwp-settings-user-sorting.php:275 #: includes/class-activator.php:657 msgid "Display Name" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:271 +#: admin/settings/class-uwp-settings-user-sorting.php:279 msgid "Sort alphabetically by display name in ascending order" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:277 +#: admin/settings/class-uwp-settings-user-sorting.php:285 #: includes/class-activator.php:608 msgid "First Name" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:281 +#: admin/settings/class-uwp-settings-user-sorting.php:289 msgid "Sort alphabetically by first name in ascending order" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:287 +#: admin/settings/class-uwp-settings-user-sorting.php:295 #: includes/class-activator.php:624 msgid "Last Name" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:291 +#: admin/settings/class-uwp-settings-user-sorting.php:299 msgid "Sort alphabetically by last name in ascending order" msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:524 +#: admin/settings/class-uwp-settings-user-sorting.php:532 msgid "This is the text used for the sort option." msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:536 +#: admin/settings/class-uwp-settings-user-sorting.php:544 msgid "Select the sort direction: (A-Z or Z-A)." msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:552 +#: admin/settings/class-uwp-settings-user-sorting.php:560 msgid "" "This sets the option as the overall default sort value, there can be only " "one." msgstr "" -#: admin/settings/class-uwp-settings-user-sorting.php:567 +#: admin/settings/class-uwp-settings-user-sorting.php:575 msgid "" "Set if this sort option is active or not, if not it will not be shown to " "users." @@ -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: UsersWP Addons" +"All of our UsersWP Addons can be found on UsersWP.io here: UsersWP Addons" msgstr "" #: admin/views/html-admin-page-addons.php:96 @@ -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: How to create a child theme" +"personally we recommend using a child theme. See: How to create a child theme" msgstr "" #: admin/views/html-admin-page-status.php:12 @@ -2488,7 +2488,7 @@ msgid "Error: Super Administrators cannot be deleted." msgstr "" #: includes/class-activator.php:364 includes/class-activator.php:640 -#: includes/libraries/class-geodirectory-plugin.php:1860 +#: includes/libraries/class-geodirectory-plugin.php:1923 msgid "Username" msgstr "" @@ -2684,21 +2684,21 @@ msgstr "" msgid "The uploaded file is too big. Maximum size allowed:" msgstr "" -#: includes/class-files.php:200 +#: includes/class-files.php:201 #, php-format msgid "\"%s\" (filetype %s) needs to be one of the following file types: %s" msgstr "" -#: includes/class-files.php:202 +#: includes/class-files.php:203 #, php-format msgid "Uploaded files need to be one of the following file types: %s" msgstr "" -#: includes/class-files.php:374 +#: includes/class-files.php:375 msgid "Remove Image" msgstr "" -#: includes/class-files.php:383 +#: includes/class-files.php:384 msgid "Remove File" msgstr "" @@ -3212,11 +3212,11 @@ msgstr "" msgid "Edit Account" msgstr "" -#: includes/class-profile.php:465 includes/class-templates.php:1126 +#: includes/class-profile.php:465 includes/class-templates.php:1125 msgid "Yes" msgstr "" -#: includes/class-profile.php:467 includes/class-templates.php:1125 +#: includes/class-profile.php:467 includes/class-templates.php:1124 msgid "No" msgstr "" @@ -3274,40 +3274,40 @@ msgstr "" msgid "Profile Page" msgstr "" -#: includes/class-templates.php:570 +#: includes/class-templates.php:569 msgid "More" msgstr "" -#: includes/class-templates.php:1104 +#: includes/class-templates.php:1103 msgid "Field" msgstr "" -#: includes/class-templates.php:1107 +#: includes/class-templates.php:1106 msgid "Is Public?" msgstr "" -#: includes/class-templates.php:1140 +#: includes/class-templates.php:1139 msgid "Tab Name" msgstr "" -#: includes/class-templates.php:1143 includes/helpers/misc.php:594 +#: includes/class-templates.php:1142 includes/helpers/misc.php:594 #: includes/helpers/tabs.php:137 msgid "Privacy" msgstr "" -#: includes/class-templates.php:1179 +#: includes/class-templates.php:1178 msgid " (Default)" msgstr "" -#: includes/class-templates.php:1194 +#: includes/class-templates.php:1193 msgid "Hide profile from the users listing page." msgstr "" -#: includes/class-templates.php:1210 +#: includes/class-templates.php:1209 msgid "Make the whole profile private" msgstr "" -#: includes/class-templates.php:1218 includes/class-user-notifications.php:69 +#: includes/class-templates.php:1217 includes/class-user-notifications.php:69 #: templates/bootstrap/change.php:29 templates/change.php:13 #: templates/reset.php:17 msgid "Submit" @@ -3788,39 +3788,39 @@ msgstr "" msgid "Two-factor Authentication Settings" msgstr "" -#: includes/helpers/misc.php:1340 +#: includes/helpers/misc.php:1339 msgid "more" msgstr "" -#: includes/helpers/misc.php:1341 +#: includes/helpers/misc.php:1340 msgid "less" msgstr "" -#: includes/helpers/misc.php:1342 +#: includes/helpers/misc.php:1341 msgid "Something went wrong." msgstr "" -#: includes/helpers/misc.php:1343 +#: includes/helpers/misc.php:1342 msgid "Something went wrong, please retry." msgstr "" -#: includes/helpers/misc.php:1527 widgets/output-location.php:90 +#: includes/helpers/misc.php:1526 widgets/output-location.php:90 msgid "Users Page" msgstr "" -#: includes/helpers/misc.php:1528 widgets/output-location.php:91 +#: includes/helpers/misc.php:1527 widgets/output-location.php:91 msgid "More info tab" msgstr "" -#: includes/helpers/misc.php:1529 +#: includes/helpers/misc.php:1528 msgid "Profile side (non bootstrap)" msgstr "" -#: includes/helpers/misc.php:1530 +#: includes/helpers/misc.php:1529 msgid "Fieldset" msgstr "" -#: includes/helpers/misc.php:1761 +#: includes/helpers/misc.php:1760 #, php-format msgid "" "%s requires a newer version of UsersWP and will not run until the UsersWP " @@ -3916,134 +3916,134 @@ msgstr "" msgid "Logout" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:121 +#: includes/libraries/class-geodirectory-plugin.php:124 msgid "Add Listing" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:140 +#: includes/libraries/class-geodirectory-plugin.php:143 msgid "My Favorites" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:159 +#: includes/libraries/class-geodirectory-plugin.php:162 msgid "My Listings" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:178 +#: includes/libraries/class-geodirectory-plugin.php:181 msgid "My Lists" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:210 +#: includes/libraries/class-geodirectory-plugin.php:213 msgid "GeoDirectory" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:234 +#: includes/libraries/class-geodirectory-plugin.php:237 msgid "GeoDirectory Settings" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:240 +#: includes/libraries/class-geodirectory-plugin.php:243 msgid "CPT listings in profile" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:241 +#: includes/libraries/class-geodirectory-plugin.php:244 msgid "Choose the post types to show listings tab in UsersWP Profile" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:248 +#: includes/libraries/class-geodirectory-plugin.php:251 msgid "CPT reviews in profile" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:249 +#: includes/libraries/class-geodirectory-plugin.php:252 msgid "Choose the post types to show reviews tab in UsersWP Profile" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:256 +#: includes/libraries/class-geodirectory-plugin.php:259 msgid "CPT favorites in profile" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:257 +#: includes/libraries/class-geodirectory-plugin.php:260 msgid "Choose the post types to show favorites tab in UsersWP Profile" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:264 +#: includes/libraries/class-geodirectory-plugin.php:267 msgid "Redirect my listing link from GD login box to UsersWP profile" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:265 +#: includes/libraries/class-geodirectory-plugin.php:268 msgid "" "If this option is selected, the my listing link from GD loginbox will " "redirect to listings tab of UsersWP profile." msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:271 +#: includes/libraries/class-geodirectory-plugin.php:274 msgid "Redirect favorite link from GD login box to UsersWP profile" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:272 +#: includes/libraries/class-geodirectory-plugin.php:275 msgid "" "If this option is selected, the favorite link from GD loginbox will redirect " "to favorites tab of UsersWP profile." msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:320 upgrade.php:211 +#: includes/libraries/class-geodirectory-plugin.php:323 upgrade.php:211 msgid "Listings" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:330 -#: includes/libraries/class-geodirectory-plugin.php:1422 upgrade.php:219 +#: includes/libraries/class-geodirectory-plugin.php:333 +#: includes/libraries/class-geodirectory-plugin.php:1483 upgrade.php:219 msgid "Reviews" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:340 upgrade.php:227 +#: includes/libraries/class-geodirectory-plugin.php:343 upgrade.php:227 msgid "Favorites" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:351 +#: includes/libraries/class-geodirectory-plugin.php:354 msgid "Lists" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:1147 -#: includes/libraries/class-geodirectory-plugin.php:1364 -#: includes/libraries/class-geodirectory-plugin.php:1577 +#: includes/libraries/class-geodirectory-plugin.php:1208 +#: includes/libraries/class-geodirectory-plugin.php:1425 +#: includes/libraries/class-geodirectory-plugin.php:1636 msgid "Edit Listing" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:1154 -#: includes/libraries/class-geodirectory-plugin.php:1373 -#: includes/libraries/class-geodirectory-plugin.php:1586 +#: includes/libraries/class-geodirectory-plugin.php:1215 +#: includes/libraries/class-geodirectory-plugin.php:1434 +#: includes/libraries/class-geodirectory-plugin.php:1645 msgid "Delete Listing" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:1177 +#: includes/libraries/class-geodirectory-plugin.php:1238 #: templates/loop-posts.php:27 #, php-format msgid "No %s found." msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:1242 +#: includes/libraries/class-geodirectory-plugin.php:1303 msgid "View" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:1824 +#: includes/libraries/class-geodirectory-plugin.php:1887 msgid "Published" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:1827 +#: includes/libraries/class-geodirectory-plugin.php:1890 msgid "Pending" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:1830 +#: includes/libraries/class-geodirectory-plugin.php:1893 msgid "Closed" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:1833 +#: includes/libraries/class-geodirectory-plugin.php:1896 msgid "Expired" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:1836 +#: includes/libraries/class-geodirectory-plugin.php:1899 msgid "Not published" msgstr "" -#: includes/libraries/class-geodirectory-plugin.php:1841 +#: includes/libraries/class-geodirectory-plugin.php:1904 msgid "Status: " msgstr "" @@ -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 visit here." +"received in your email. To request new password reset link visit here." msgstr "" #: templates/bootstrap/user-avatar.php:34 templates/profile-header.php:70 diff --git a/readme.txt b/readme.txt index 3314ffe9..8ff0aafd 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.12 +Stable tag: 1.2.13 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -146,7 +146,7 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver == Changelog == -= 1.2.13 - TBD = += 1.2.13 - 2024-07-16 = * Email notification options in account not saved if only one setting is there - ADDED * Users page shows empty p tags on block theme - FIXED diff --git a/userswp.php b/userswp.php index b1f78e2d..21eb70bd 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.12 +Version: 1.2.13 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.12' ); + define( 'USERSWP_VERSION', '1.2.13' ); } if ( ! defined( 'USERSWP_PATH' ) ) {