From 8cc4be56d6243f0c0a11abc611897043ef4902a6 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Mon, 15 Oct 2018 21:36:34 +0300 Subject: [PATCH] - fixed profile page permalinks; --- includes/class-dependencies.php | 1 + includes/core/class-enqueue.php | 4 +--- includes/core/class-permalinks.php | 4 ++-- readme.txt | 8 +++++++- ultimate-member.php | 2 +- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/includes/class-dependencies.php b/includes/class-dependencies.php index 4d31beef..dcbc25c0 100644 --- a/includes/class-dependencies.php +++ b/includes/class-dependencies.php @@ -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', ); diff --git a/includes/core/class-enqueue.php b/includes/core/class-enqueue.php index 11e9ed7d..9ed34f88 100644 --- a/includes/core/class-enqueue.php +++ b/includes/core/class-enqueue.php @@ -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' ) ); diff --git a/includes/core/class-permalinks.php b/includes/core/class-permalinks.php index d88200e9..7f2408cf 100644 --- a/includes/core/class-permalinks.php +++ b/includes/core/class-permalinks.php @@ -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 : ''; } diff --git a/readme.txt b/readme.txt index 4a3feed2..279364f2 100644 --- a/readme.txt +++ b/readme.txt @@ -6,7 +6,7 @@ Donate link: Tags: community, member, membership, user-profile, user-registration Requires at least: 4.7 Tested up to: 4.9 -Stable tag: 2.0.29 +Stable tag: 2.0.30 License: GNU Version 2 or Any Later Version License URI: http://www.gnu.org/licenses/gpl-3.0.txt @@ -133,6 +133,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat = Important: UM2.0+ is a significant update to the code base from 1.3.88. Please make sure you take a full-site backup with restore point before updating the plugin = += 2.0.30: October 8, 2018 = + +* Bugfixes: + - Fixed uppercase symbols using at profile page slug + - Added bookmarks compatibility + = 2.0.29: October 8, 2018 = * Bugfixes: diff --git a/ultimate-member.php b/ultimate-member.php index ddb8020d..6fb8cc17 100644 --- a/ultimate-member.php +++ b/ultimate-member.php @@ -3,7 +3,7 @@ Plugin Name: Ultimate Member Plugin URI: http://ultimatemember.com/ Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress -Version: 2.0.29 +Version: 2.0.30 Author: Ultimate Member Author URI: http://ultimatemember.com/ Text Domain: ultimate-member