Releases: strangerstudios/pmpro-member-directory
Releases · strangerstudios/pmpro-member-directory
1.2.6 - 2024-02-19
- SECURITY: Improved security around shortcode attributes to prevent SQL injection.
1.2.5 - 2024-02-14
- SECURITY: Improved security around using the Directory and Profile shortcode or block to only be used by users that have are able to edit the relevant content and edit_users capability. (@andrewlimaza)
- REFACTOR: Moved from pmpro_getOption to get_option for better compatibility. (@JarrydLong)
- REFACTOR: Improved accessibility for screen readers by adjusting the HTML header sizes. (@kimwhite)
- BUG FIX: Fixed an issue where fields that had default blank values would show up on the profile page (@ipokkel)
v1.2.4 - 2023-06-28
- ENHANCEMENT: Improved pagination style to display page numbers instead of ... (@JarrydLong)
- ENHANCEMENT: Improved output on custom fields label values for value => label type of fields. (@andrewlimaza)
- ENHANCEMENT: Improved compatibility with Multiple Memberships Per User. Shows the oldest start date if a user has multiple levels (@dparker1005)
- BUG FIX: Fixed an issue where using the [membership] shortcode would redirect to the directory page. (@andrewlimaza)
- BUG FIX: Fixed an issue where the auto embedding functionality would incorrectly embed custom fields.(@andrewlimaza)
v1.2.3 - 2022-08-05
- BUG FIX/ENHANCEMENT: Better profile page checks prevent issues with rewrite rules. (@ideadude & @kimcoleman)
V1.2.2 - 2022-07-07
- BUG FIX: Fixed issue when profile page was nested within a nested page (Thanks @JarrydLong)
- BUG FIX: Fixed fatal error when Paid Memberships Pro plugin wasn't active. (Thanks @JarrydLong)
- BUG FIX: Fixed a layout issue conflict on the directory page for the Membership Maps Add On being included in the div container and now displays it correctly. (Thanks @JarrydLong)
- BUG FIX: Fixed warnings of undefined variables when navigating to a profile page of a non-existing user. (Thanks @ipokkel)
- REFACTOR: Adjusted incorrect docblock variable for the format the profile field method. (Thanks @ipokkel)
v1.2.1
- ENHANCEMENT: Added small sanitization check for query parameter values.
- BUG FIX: Fixed issue where passing "user_id" attribute in shortcode was returning empty results.
- BUG FIX: Removed debug code that was causing minor output issues.
V1.2
- ENHANCEMENT: General improvements to localization and translatable strings.
- ENHANCEMENT: Improvement to profile pretty permalinks structure that's more SEO friendly (e.g. membership-account/profile/admin/). Automatically flush permalinks when needed in admin area.
- ENHANCEMENT: Improved handling of clickable links, we try to automatically embed custom fields first or fallback to clickable URL fields.
- ENHANCEMENT: pmpro_get_element_class implemented on directory and profile pages to load HTML classes as needed.
- ENHANCEMENT: Added "Edit Profile" link for administrators when viewing the profile page. Redirects to the edit profile WordPress page.
- ENHANCEMENT: New filter
pmpromd_try_oembed_url
added to allow trying to embed possible fields first. Set this false if you don't want to automatically embed embeddable URL's. - ENHANCEMENT: New filter
pmpromd_format_profile_field
added to allow how to format any fields that may be clickable and allows custom output for fields. - ENHANCEMENT: New filter
pmpromd_user_identifier
added to allow how to identify/retrieve the user information. Defaults to "slug" (user_nicename) or can use user ID to retrieve relevant information in the directory or profile page. - ENHANCEMENT: New filter
pmpro_member_directory_sql_search_where
added to allow filtering of search WHERE SQL conditions to offer more specific search results. - ENHANCEMENT: Profile page title no longer changes to the user's name.
- ENHANCEMENT: Improved the displaying of level dependent custom fields.
- BUG FIX: Fixed issue where pagination would cause issues with search. (Thanks @jcotter).
V1.1
- BUG FIX: Fixed issue where saving "hide from directory" wasn't saving on the front-end profile page.
- BUG FIX: Fixed issue where profile page wasn't showing user information (fields) correctly.
V1.0
- BUG FIX/ENHANCEMENT: Moved
pmpro_member_directory_after
outside div container for better styling with Membership Maps. - ENHANCEMENT: Added new filter to adjust user display name on directory and profile page.
pmpro_member_directory_display_name
. - ENHANCEMENT: New filter added to allow PHP to adjust the user results further.
pmpromd_user_directory_results
. - ENHANCEMENT: Updated webpack configuration to use wp-scripts package.
- ENHANCEMENT: Added an 'edit' link if user is viewing their own profile. New filter added 'pmpromd_member_profile_action_links'.
- ENHANCEMENT: New hooks added to templates - 'pmpro_member_profile_before', 'pmpro_member_directory_before' and 'pmpro_member_directory_after'.
- ENHANCEMENT: Removed semi-colon from field label where it was automatically being displayed. User's now can manually add this in if needed.
v0.7
- SECURITY/ENHANCEMENT: Update NPM packages to latest version to resolve vulnerability issues.
- BUG FIX: Stripping slashes when using an apostrophe in search field.
- BUG FIX: Fixed notice and display bug when a trailing space was left in the shortcode's "fields" attribute.
- BUG FIX: Added
method="post"
to search form on directory page to avoid errors where sites not using pretty permalinks would break. - BUG FIX/ENHANCEMENT: Replicated error_log for field data code in the "table" layout (logging was already in the other layouts).
- BUG FIX/ENHANCEMENT: Added
word-break
css improvement for cases where a long name or email address was forcing overflow content. - BUG FIX/ENHANCEMENT: Fixed case where a user hidden from directory could still have their individual profile accessed through direct URL.
- ENHANCEMENT: Support for Multiple Memberships Per User to display comma-separated list of levels in directory and profile view.
- ENHANCEMENT: Support for frontend member profile edit in PMPro v2.3+ to allow members to toggle display in directory.
- ENHANCEMENT: Filter added for previous and next page navigation on directory (
pmpromd_pagination_url
). - ENHANCEMENT: Wrapped the filename output on directory or profile with
<span class="pmpromd_filename">
to allow customization or hide via CSS.