mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 19:56:27 +09:00
- fixed profile page permalinks;
This commit is contained in:
@@ -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' ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user