mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +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 : '';
|
||||
}
|
||||
|
||||
|
||||
|
||||
+7
-1
@@ -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:
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user