- fixed profile page permalinks;

This commit is contained in:
nikitozzzzzzz
2018-10-15 21:36:34 +03:00
parent 2a6f8e6531
commit 8cc4be56d6
5 changed files with 12 additions and 7 deletions
+1 -3
View File
@@ -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' ) );