mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- 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:
@@ -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 . '/';
|
||||
|
||||
Reference in New Issue
Block a user