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.
This commit is contained in:
Mykyta Synelnikov
2025-11-19 19:47:48 +02:00
parent c7ff157ff8
commit 254c5d4782
3 changed files with 10 additions and 2 deletions
+1
View File
@@ -6,6 +6,7 @@
- Added: Extra condition for checking the license activation requests.
- Added: 2nd `$args` attribute to the action hook 'um_cover_area_content'.
- Added: Class `um-profile-subnav-{$subnav_id}-link` to the sub navigation links in the User Profile page.
- Tweak: Updated `Extensions_Updater` class to use Action Scheduler in the upgrade process of the UM extensions.
* Bugfixes: