mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 07:04:06 +09:00
- fixed profile page permalinks;
This commit is contained in:
@@ -59,6 +59,7 @@ if ( ! class_exists( 'um\Dependencies' ) ) {
|
||||
'beaver-builder' => '2.0',
|
||||
'user-photos' => '2.0.1',
|
||||
'user-exporter' => '1.0.0',
|
||||
'bookmark' => '2.0',
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ if ( ! class_exists( 'um\core\Enqueue' ) ) {
|
||||
* Enqueue constructor.
|
||||
*/
|
||||
function __construct() {
|
||||
|
||||
$this->suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || defined( 'UM_SCRIPT_DEBUG' ) ) ? '' : '.min';
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
@@ -73,8 +73,6 @@ if ( ! class_exists( 'um\core\Enqueue' ) ) {
|
||||
function wp_enqueue_scripts() {
|
||||
global $post;
|
||||
|
||||
$this->suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || defined( 'UM_SCRIPT_DEBUG' ) ) ? '' : '.min';
|
||||
|
||||
if ( ! is_admin() ) {
|
||||
$c_url = UM()->permalinks()->get_current_url( get_option( 'permalink_structure' ) );
|
||||
|
||||
|
||||
@@ -373,11 +373,11 @@ if ( ! class_exists( 'um\core\Permalinks' ) ) {
|
||||
|
||||
} else {
|
||||
|
||||
$profile_url = add_query_arg( 'um_user', $slug, $profile_url );
|
||||
$profile_url = add_query_arg( 'um_user', strtolower( $slug ), $profile_url );
|
||||
|
||||
}
|
||||
|
||||
return ! empty( $profile_url ) ? strtolower( $profile_url ) : '';
|
||||
return ! empty( $profile_url ) ? $profile_url : '';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user