mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed getting permalink for profile tab if permalinks settings are disabled;
This commit is contained in:
@@ -69,7 +69,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
*
|
||||
* @var
|
||||
*/
|
||||
public $is_permalinks;
|
||||
public $is_permalinks = false;
|
||||
|
||||
/**
|
||||
* @var null|string
|
||||
|
||||
@@ -1755,7 +1755,7 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
||||
|
||||
$redirects = array_unique( $redirects );
|
||||
|
||||
$current_url = UM()->permalinks()->get_current_url( get_option( 'permalink_structure' ) );
|
||||
$current_url = UM()->permalinks()->get_current_url( UM()->is_permalinks );
|
||||
$current_url = untrailingslashit( $current_url );
|
||||
$current_url_slash = trailingslashit( $current_url );
|
||||
|
||||
|
||||
@@ -1691,7 +1691,7 @@ function um_profile_menu( $args ) {
|
||||
|
||||
<?php foreach ( $tabs as $id => $tab ) {
|
||||
|
||||
$nav_link = UM()->permalinks()->get_current_url( get_option( 'permalink_structure' ) );
|
||||
$nav_link = UM()->permalinks()->get_current_url( UM()->is_permalinks );
|
||||
$nav_link = remove_query_arg( 'um_action', $nav_link );
|
||||
$nav_link = remove_query_arg( 'subnav', $nav_link );
|
||||
$nav_link = add_query_arg( 'profiletab', $id, $nav_link );
|
||||
|
||||
Reference in New Issue
Block a user