Commit Graph

2737 Commits

Author SHA1 Message Date
Mykyta Synelnikov e9abab925f Fix security vulnerability CVE-2025-13220 in Ultimate Member.
Addressed CVE-2025-13220 by implementing necessary fixes in the plugin's shortcodes and updating sanitization for shortcode attributes. Removed redundant compatibility checks for WordPress versions earlier than 5.4 and improved stability in the shortcode handling logic.
2025-12-05 17:41:51 +02:00
Mykyta Synelnikov 3d5d27c588 Add $args and $user_id to 'um_after_profile_header_name'
Enhanced the action hook 'um_after_profile_header_name' by including `$args` and `$user_id` parameters. Updated documentation and examples to reflect these changes, enabling more flexible and detailed customization options for developers.
2025-12-02 10:27:13 +02:00
Mykyta Synelnikov 4dff10118d Update 'groups' dependency to version 2.5.0
Bump the required version of the 'groups' dependency from 2.4.2 to 2.5.0. This ensures compatibility with the latest features and fixes provided by the updated version.
2025-12-01 12:04:03 +02:00
Mykyta Synelnikov 06139ea3e6 Update version to 2.11.0 across plugin files
Bump the plugin version from 2.10.7 to 2.11.0 in all relevant files, reflecting the latest release. This includes updates to documentation, metadata, changelogs, and file references to maintain consistency.
2025-12-01 11:54:23 +02:00
Mykyta Synelnikov 254c5d4782 Improve subnav link class handling in user profiles
Refactor the subnav link class generation to use an array-based approach. This ensures better flexibility and readability while adding the "active" class conditionally when needed.
2025-11-19 19:47:48 +02:00
Mykyta Synelnikov 53828dd76d Refactor profile cover hook to include $args parameter.
Updated the `um_cover_area_content` hook to pass an additional `$args` parameter for enhanced customization in the user profile cover wrapper. Improved the documentation for clarity and usability.
2025-11-18 14:20:50 +02:00
Mykyta Synelnikov 24bb2fd9e9 Merge pull request #1761 from ultimatemember/fix/check_empty_response
Fix license validation retries and add improved error logging
2025-11-18 13:10:18 +02:00
Mykyta Synelnikov a40199a054 Update 'groups' dependency version in Ultimate Member
Downgraded the 'groups' dependency from 2.5.0 to 2.4.2 to address compatibility issues. This ensures proper functionality with the current plugin setup.
2025-11-18 13:05:17 +02:00
Mykyta Synelnikov 47f29436f0 Fix default value for role metadata retrieval
Ensure `get_option` returns an empty array as a fallback to prevent errors when metadata for a role does not exist. This resolves potential issues with undefined or unexpected data during role editing.
2025-11-12 18:16:25 +02:00
Mykyta Synelnikov 260cd5c239 Update group and activity wall post features and dependencies
Enhanced the handling of wall posts and comments in both Activity and Groups modules. Updated Groups plugin to version 2.5.0, requiring UM Core 2.10.7. Adjusted dependency versions and changelogs to match the latest updates.
2025-11-12 17:04:54 +02:00
Mykyta Synelnikov 88607b854b Update dependencies and enhance emotize method
Bumps required plugin version dependencies for compatibility. Refactors the `emotize` method by adding a `$stripslashes` parameter to provide optional handling of string slashes, improving flexibility and functionality.
2025-11-07 14:18:38 +02:00
Mykyta Synelnikov e2cb125e97 Update UM MailChimp to version 2.6.2 with dependency tweaks
Bump version to 2.6.2, updating dependency requirements for UM core to 2.10.7. Integrated extensions updater and polished compatibility with Action Scheduler. Minor code formatting adjustments for better readability.
2025-11-04 15:51:43 +02:00
yuriinalivaiko 42c5ed7b2b - corrected a typo in the warning text 2025-11-03 20:18:33 +02:00
Mykyta Synelnikov fb3a296fc8 Add debug mode for extensions updater
Introduced the `UM_UPDATER_DEBUG` constant to enable debugging for upgrade packages. This facilitates easier troubleshooting and testing during update processes.
2025-11-03 17:58:53 +02:00
Mykyta Synelnikov c2da11ff0a Refactor extension updater to use multiple hooks.
Updated the `package_start` method to define separate hooks for 'start' and 'complete' package lifecycle events. This improves code clarity and prepares the updater for handling more specific actions in the future.
2025-11-03 17:06:31 +02:00
Mykyta Synelnikov a25153e347 Add support for processing extension updates in batches
Introduced batch processing for extension updates with package start and complete hooks, preventing duplicate actions via transient flags. Added constants for configuration and helper methods to manage package version state effectively. Ensures smoother upgrade handling for Ultimate Member extensions.
2025-10-31 01:26:42 +02:00
Mykyta Synelnikov 796eb46f87 Fix license validation retries and add improved error logging
Previously, requests on license validation did not adequately handle empty responses or WP errors. This update ensures retries are performed with `sslverify=true` in such cases and enhances debug logging to provide clearer error details for troubleshooting.
2025-10-28 22:06:48 +02:00
Mykyta Synelnikov a33be50a55 Fix user profile URL logic for comment authors
Previously, the profile URL was returned even when the user ID was empty. This change ensures the URL is only generated if the user ID is present, preventing potential errors.
2025-10-07 11:56:25 +03:00
Mykyta Synelnikov b8216dee2a Fix null check in comment author URL retrieval
Previously, the method assumed the comment object was always present, which could lead to errors. Added a null check to ensure a fallback to the original URL if the comment object is absent.
2025-10-03 13:59:40 +03:00
ashubawork e79dfef4d5 - fix emotize regex 2025-09-30 14:26:55 +03:00
Mykyta Synelnikov 1d4d1e4f2f Update Ultimate Member to version 2.10.6
This release adds multiple enhancements, including WebP support, new filter hooks, license debugging, and improved extension upgrades. It also fixes issues like numeric field filtering, profile link handling, and dependencies with Action Scheduler. Cached assets should be regenerated post-upgrade.
2025-09-27 11:17:08 +03:00
Mykyta Synelnikov 1e30027605 Add license request debugging functionality
Introduced a new method `is_license_debug_enabled` to check debug conditions and added extensive logging for license requests when debugging is enabled. A new constant `UM_LICENSE_REQUEST_DEBUG` was also defined to control debug mode. These changes enhance visibility into license request handling during development or troubleshooting.
2025-09-27 10:49:10 +03:00
Mykyta Synelnikov a338dbb684 Add AI assistant and moderation to plugin dependencies
New dependencies `ai-assistant` and `ai-moderation` were added to the Ultimate Member plugin. This ensures support for these features, expanding the plugin's capabilities.
2025-09-25 17:54:25 +03:00
ashubawork 4d2a992843 - allow webp image format 2025-09-22 12:48:39 +03:00
Mykyta Synelnikov e26bd8eafb Fix default page creation check in admin form logic
Updated logic to handle the 'predefined' field flag when determining default page creation. This ensures buttons for creating default pages only appear under the correct conditions, improving reliability and consistency.
2025-09-17 15:37:13 +03:00
Mykyta Synelnikov 1a3a6aec53 Add field ID to AJAX data in admin forms JS
This update modifies the AJAX request in `forms.js` by including the field ID in the data payload. This improvement enables more precise handling of form fields in the Ultimate Member plugin's admin interface.
2025-09-17 15:02:40 +03:00
Mykyta Synelnikov bdf96012c8 "Align array keys in allowed HTML definitions for clarity.
Standardized indentation across the allowed HTML keys to improve readability and maintain consistency in the codebase. This change ensures better alignment, making it easier to navigate and understand the structure."
2025-09-16 18:28:49 +03:00
Mykyta Synelnikov da4a5ccce6 Add function to check if a post is a predefined page
Introduce `um_post_is_predefined_page` to determine if a given post ID corresponds to a predefined page. This enhances functionality by allowing checks against predefined page slugs mapped in the plugin configuration.
2025-09-16 16:00:26 +03:00
Mykyta Synelnikov 39b3b3873e Add new sanitization cases for array-based input validation
Introduced 'sanitize_array_key_int' and 'sanitize_array_key' cases to enhance sanitization of array-based input in admin settings. This ensures default values are used for invalid keys and enforces stricter validation for cleaner and more secure input handling.
2025-09-08 23:20:59 +03:00
Mykyta Synelnikov 5c67164cc2 Fix cover image size handling and add fallback for invalid sizes
Improved logic to handle cases where the cover image size array is invalid or empty by adding a fallback default size. For mobile devices, the second size is used if available, or the first size is used as a fallback. This ensures proper cover size selection and prevents potential errors.
2025-09-06 14:42:15 +03:00
Mykyta Synelnikov 3cafd12137 Fix invalid 'start_of_week' handling in weekly events logic
Ensure 'start_of_week' option is validated as numeric to prevent incorrect calculations. This fixes potential issues when non-numeric values are stored in the option.
2025-09-05 15:24:28 +03:00
Mykyta Synelnikov cb856d05a2 Merge pull request #1731 from ultimatemember/fix/condition_logic_contain
Condition logic contain
2025-09-05 15:10:11 +03:00
Mykyta Synelnikov 6ae2ec4ec8 Add filter hook to customize empty status user queries
Introduced the `um_get_empty_status_users_query_result` filter to allow customization of the query used for fetching users with empty statuses. This enhances flexibility and enables optimization for different website setups. Updated relevant documentation in the readme file.
2025-09-05 12:17:15 +03:00
Mykyta Synelnikov 58fdd9f943 Update user profile link handling in frontend
Refactored methods to change user profile edit and comment author URL logic, ensuring compatibility with Ultimate Member plugin's structure. Updated readme file to reflect changes and fixed bugs related to profile link display in the comments section.
2025-09-05 12:08:19 +03:00
Mykyta Synelnikov 2b8d964a1d Merge pull request #1728 from ultimatemember/fix/edit_user_link
Edit user link
2025-09-05 11:58:49 +03:00
Mykyta Synelnikov 0a0490b7cc Merge pull request #1729 from ultimatemember/fix/package_update
Fix package update
2025-09-03 14:42:49 +03:00
ashubawork 6905df14ea - fixed comment author link in commetns block 2025-08-26 09:59:53 +03:00
Mykyta Synelnikov 6434218f96 Add mobile cache bypass for specific Ultimate Member pages
Prevent caching on mobile devices for login, register, and account pages in Ultimate Member. This ensures updated content is always displayed and avoids caching-related issues on these critical pages.
2025-08-04 12:47:13 +03:00
ashubawork 91b15a80ef - fix contain in conditional logic 2025-07-31 13:49:45 +03:00
ashubawork 4522e6d64c - fix fatal error 2.0-beta1 package update 2025-07-30 13:09:54 +03:00
ashubawork 982dbd4e7f - fix edit user link 2025-07-30 12:24:10 +03:00
Mykyta Synelnikov 976c0c75e2 Add Extensions_Updater class for handling extension updates
Introduced a new `Extensions_Updater` class to manage extension update processes, including version checks and file execution. Added a corresponding `extension_updater` method in `class-admin.php` to initialize and manage updater instances based on provided data.
2025-07-07 13:04:19 +03:00
Mykyta Synelnikov 0845f55604 Fix: exclude empty meta values in directory filtering
Previously, empty `meta_value` entries were included in the query, potentially causing inaccurate results. This update adds a condition to exclude empty `meta_value` entries, ensuring more reliable directory filtering.
2025-06-27 14:24:08 +03:00
Mykyta Synelnikov d28642a657 Fix email validation logic in Ultimate Member forms
Updated the condition to ensure proper validation for secondary email fields. This change ensures unique email addresses and prevents potential conflicts in user data.
2025-06-25 18:09:48 +03:00
Mykyta Synelnikov 4d83a7eec3 Fix email validation logic in Ultimate Member forms
Updated conditions to handle empty and invalid email input more accurately. Ensures required emails are not skipped and includes stricter checks for existing or incorrect emails.
2025-06-25 16:24:14 +03:00
Mykyta Synelnikov 03725ffcff Add new hooks, refactor workflows, and deprecate unused functions
Introduced new filter hooks for primary button classes in forms and improved URL handling for password resets and account activations. Deprecated several unused functions and replaced them with updated alternatives to streamline the codebase. Updated documentation and templates accordingly.
2025-06-25 16:01:08 +03:00
Mykyta Synelnikov d3a5dc6acc Merge pull request #1713 from ultimatemember/fix/strip_shortcodes_in_submission
Fixes unstripped shortcodes in submission
2025-06-24 17:22:47 +03:00
Mykyta Synelnikov 213b419913 Fix user ID comparison with absint to ensure type safety
Updated the user ID comparison logic in the Ultimate Member plugin to use `absint` for both values. This prevents type mismatches and ensures robust validation during form submission.
2025-06-24 17:19:48 +03:00
Mykyta Synelnikov a102d22ce1 Prevent shortcode execution in user input sanitization.
Added `strip_shortcodes` across various sanitization routines to ensure user inputs do not execute shortcodes. This enhances security by blocking unintended shortcode processing in fields such as text, email, URLs, and form descriptions.
2025-06-24 17:16:28 +03:00
Mykyta Synelnikov 524670ad53 Merge pull request #1683 from ultimatemember/fix/sitehealth
Sitehealth
2025-06-24 16:56:38 +03:00