- updated using get_option( 'permalink_structure' ) to UM()->is_permalinks which is the same;

- code review for WPML profile links;
- fixed User Profile tabs and subtabs link with WPML arguments in link;
- added deprecated function to outdated `um_rel_canonical_()`. @todo remove since 2.7.0;
- fixed WPCS in class-permalinks.php;
- deprecated `um_localize_permalink_filter`. Use `post_link` instead;
- added new hooks: `um_profile_permalink`,`um_external_profile_url` and new docs for them;
- added new hookdocs for `um_get_current_page_url`;
- temporarily added development/2.6.3 branch to build-docs.yml
This commit is contained in:
Mykyta Synelnikov
2023-06-09 12:28:15 +03:00
parent c6e5dee6c6
commit 936190d93e
4 changed files with 246 additions and 237 deletions
+1 -1
View File
@@ -472,7 +472,7 @@ if ( ! class_exists( 'um\core\Account' ) ) {
*/
function tab_link( $id ) {
if ( get_option( 'permalink_structure' ) ) {
if ( UM()->is_permalinks ) {
$url = trailingslashit( untrailingslashit( um_get_core_page( 'account' ) ) );
$url = $url . $id . '/';