Commit Graph

176 Commits

Author SHA1 Message Date
ashubawork 91b15a80ef - fix contain in conditional logic 2025-07-31 13:49:45 +03:00
Mykyta Synelnikov bcfdbb954d Refactor email placeholders and deprecate obsolete methods
Streamline placeholder handling for emails by introducing universal patterns and replacements, and update email dispatch functions for efficiency. Deprecated various redundant user and password-related methods, consolidating logic into common utility classes for better maintainability.
2025-05-19 14:26:39 +03:00
Mykyta Synelnikov 9804b92583 Refactor form request checks to simplify and optimize logic
Simplified conditional checks for password and account form submissions by replacing `isset` with `!empty` where applicable. This improves readability and reduces redundancy while maintaining functionality and security. Added comments to clarify nonce verification status.
2025-05-12 15:39:52 +03:00
Mykyta Synelnikov 5cb6ae6dc5 * prepared to the release 2025-01-14 15:39:01 +02:00
ashubawork 6653769d72 - add a hooks for submitted registration data 2024-12-17 15:48:20 +02:00
Mykyta Synelnikov b4becdbcf5 * reviewed #1582; 2024-11-13 17:20:52 +02:00
yuriinalivaiko 9d373c968e - fixed incorrect usage of the um_fetch_user function 2024-11-13 14:32:47 +02:00
ashubawork 4ed16c1be1 - fix um_get_requested_user 2024-09-25 11:34:25 +03:00
Mykyta Synelnikov 9bc79feb04 Merge pull request #1545 from ultimatemember/fix/um_loggedin
Fixed vulnerability in [um_loggedin] shortcode
2024-09-24 13:28:18 +03:00
Mykyta Synelnikov 512dc53a18 - changed wp-admin > Users page;
* updated filters by status, avoid slow queries for getting users count;
* updated bulk-actions for changing statuses (moved to WP native dropdown)
* separate handlers for changing user statuses on wp-admin and frontend (partially implemented);
* created class UM()->common()->users() to handle user statuses in more clear format;
* deprecated old hooks and old functions
2024-09-20 18:41:08 +03:00
Mykyta Synelnikov 6c632a2c68 - fixed CVE ID: CVE-2024-8519
- WPCS;
2024-09-12 16:44:53 +03:00
Mykyta Synelnikov f823bb1a2f - fixed getting capabilities of the user without role 2024-04-12 14:52:10 +03:00
ashubawork 646db4ce48 - fix youtube validation 2024-04-11 11:41:45 +03:00
Mykyta Synelnikov d48bcac683 - fixed using esc_attr() in href="" attributes; 2024-03-27 11:06:02 +02:00
Mykyta Synelnikov e1f550afb5 - changed "e-mail" to "email";
- changed texts for admin notices;
- added a few links to docs;
2024-02-16 15:12:21 +02:00
Mykyta Synelnikov 2c5f396795 - partially reviewed #1361; 2023-12-01 00:30:37 +02:00
Mykyta Synelnikov be9bb0f239 - partially reviewed #1361; 2023-11-30 10:55:00 +02:00
yuriinalivaiko a4d97612bb - fixed YouTube link validation: sub-domain is allowed 2023-11-10 20:14:38 +02:00
yuriinalivaiko b85fe08bc5 - fixed YouTube link validation 2023-11-10 20:14:38 +02:00
Mykyta Synelnikov 01ee8305a2 - reduced using get_the_time( 'U', $post_id ); and current_time( 'timestamp' ); 2023-09-22 20:29:40 +03:00
Mykyta Synelnikov 45a22f371e - updated comments; 2023-09-22 16:50:51 +03:00
ashubawork 8abd17acf2 - add the ability to add youtube shorts 2023-09-21 13:56:11 +03:00
Mykyta Synelnikov b83da8b814 - WPCS for defined constants;
* um_url -> UM_URL
   * um_path -> UM_PATH
   * um_plugin -> UM_PLUGIN
   * ultimatemember_version -> UM_VERSION
   * ultimatemember_plugin_name -> UM_PLUGIN_NAME
2023-09-13 22:56:32 +03:00
Mykyta Synelnikov e5b8ff400e - fixed editable attribute base on the legacy code;
- if `editable` attribute  doesn't exist then we set `editable` to true by default;
2023-09-05 01:12:16 +03:00
Mykyta Synelnikov 8b19234dcf - fixed [ultimatemember] shortcode using with a wrong|empty form_id; 2023-08-28 15:10:42 +03:00
Mykyta Synelnikov bfef1f9dc7 - reviewed #1269;
- unified `UM()->fields()->editing` and `UM()->fields()->viewing` to bool variables use true|false in conditions to make `===` or `!==` comparing;
2023-08-15 03:49:13 +03:00
Mykyta Synelnikov 1f3ebdcdd0 - reviewed #1275;
- fixed #1274;
2023-08-11 11:57:43 +03:00
Mykyta Synelnikov c0a0fc475c - added 'um_can_view_profile' hook; 2023-08-03 01:21:23 +03:00
Mykyta Synelnikov c9789b8462 - standardize the condition for checking not editable fields to empty( $data['editable'] 2023-07-27 13:37:01 +03:00
Mykyta Synelnikov 8887572aed - fixed hosts in uppercase; 2023-07-18 12:34:06 +03:00
Mykyta Synelnikov ce4cf8fe7b - updated hookdocs;
- reviewed `um_safe_redirect()`;
- updated readme.txt
2023-07-18 12:06:17 +03:00
ashubawork 7cdd2728e0 - add um safe redirect 2023-07-18 09:39:34 +03:00
ashubawork 5b647ae5e9 - add translators 2023-07-13 11:36:29 +03:00
Mykyta Synelnikov 6c3b06dff0 - fixed #1241 issue; 2023-07-11 17:59:54 +03:00
ashubawork c78e88349c - add hook for user photos ext 2023-07-06 13:40:20 +03:00
Mykyta Synelnikov dae94dd363 - added hook 'um_submitted_data_value' for changing format of submitted data; 2023-07-02 20:43:30 +03:00
Mykyta Synelnikov 8057d06f81 - reviewed #769;
- added `get_member_directory_id()` function for getting member directory ID based on page ID;
- commented hooks 'um_prepare_user_results_array', 'um_prepare_user_results_array_meta'
- added snippet fo hiding filters from member directory based on public or private visibility;
2023-06-12 15:22:35 +03:00
Mykyta Synelnikov 30482254ba - merged #1029; 2023-05-23 14:21:27 +03:00
Nikita Sinelnikov 172e681714 - probably fixed: #1084; 2022-12-13 23:39:42 +02:00
Nikita Sinelnikov b547d899bc - removed outdated setting using in code (force_display_name_capitlized). Moved the functionality to extended repo:
https://github.com/ultimatemember/Extended/tree/main/um-capitalize-name#readme
2022-10-24 14:29:04 +03:00
Nikita Sinelnikov 238326e1a9 - fixed #918; 2021-09-22 01:11:32 +03:00
Nikita Sinelnikov 7aa8efefff - fixed strlen() to mb_strlen(); 2021-09-21 16:20:37 +03:00
ashubawork e1b35403a0 - check variable as array (issue #913) 2021-09-16 13:18:06 +03:00
Nikita Sinelnikov 9927dab323 - fixed um_edit_profile_url() function and added $user_id attribute;
- added `disable_restriction_pre_queries` option for backward compatibility with business logic where 404 error isn't good way;
- added `restricted_post_title_replace` option for ability to disable restricted post's title replace
2021-08-25 01:07:09 +03:00
Nikita Sinelnikov eeb7c39471 - fixed maybe serialized custom fields;
- fixed sanitizing;
2021-07-16 01:35:13 +03:00
Nikita Sinelnikov 07e664be80 - intermediate results with sanitizing form handlers; 2021-06-29 02:51:54 +03:00
nikitasinelnikov 60187cdc67 - fixed XSS issue with current profile URL 2021-05-07 13:42:20 +03:00
nikitasinelnikov e32b28d1ee - fixed editing private profiles; 2021-04-12 12:54:43 +03:00
nikitasinelnikov d577108707 - fixed field's privacy settings on the profile page when view mode;
- fixed "Edit" button visibility in the member directory grid;
2021-04-07 02:43:33 +03:00
nikitasinelnikov a362496b55 - changed field's privacy type label; 2021-04-06 14:55:55 +03:00