Version Description
Download this release
Release Info
Developer | ultimatemember |
Plugin | ![]() |
Version | 1.0.46 |
Comparing to | |
See all releases |
Code changes from version 1.0.45 to 1.0.46
- admin/assets/js/um-admin-modal.js +13 -0
- admin/assets/js/um-admin-scripts.js +0 -13
- admin/core/um-admin-enqueue.php +11 -17
- core/um-rewrite.php +3 -1
- core/um-setup.php +2 -1
- index.php +1 -1
- readme.txt +11 -1
- um-init.php +2 -1
admin/assets/js/um-admin-modal.js
CHANGED
@@ -1,3 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
function um_admin_new_modal( id, ajax, size ){
|
2 |
|
3 |
var modal = jQuery('body').find('.um-admin-overlay');
|
1 |
+
function um_admin_live_update_scripts() {
|
2 |
+
|
3 |
+
jQuery('.um-admin-modal-body:visible select').select2({
|
4 |
+
allowClear: false,
|
5 |
+
minimumResultsForSearch: 10
|
6 |
+
});
|
7 |
+
|
8 |
+
jQuery('.um-adm-conditional').each(function(){jQuery(this).trigger('change');});
|
9 |
+
|
10 |
+
jQuery('.um-admin-colorpicker').wpColorPicker();
|
11 |
+
|
12 |
+
}
|
13 |
+
|
14 |
function um_admin_new_modal( id, ajax, size ){
|
15 |
|
16 |
var modal = jQuery('body').find('.um-admin-overlay');
|
admin/assets/js/um-admin-scripts.js
CHANGED
@@ -1,16 +1,3 @@
|
|
1 |
-
function um_admin_live_update_scripts() {
|
2 |
-
|
3 |
-
jQuery('.um-admin-modal-body:visible select').select2({
|
4 |
-
allowClear: false,
|
5 |
-
minimumResultsForSearch: 10
|
6 |
-
});
|
7 |
-
|
8 |
-
jQuery('.um-adm-conditional').each(function(){jQuery(this).trigger('change');});
|
9 |
-
|
10 |
-
jQuery('.um-admin-colorpicker').wpColorPicker();
|
11 |
-
|
12 |
-
}
|
13 |
-
|
14 |
jQuery(document).ready(function() {
|
15 |
|
16 |
/**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
jQuery(document).ready(function() {
|
2 |
|
3 |
/**
|
admin/core/um-admin-enqueue.php
CHANGED
@@ -82,7 +82,7 @@ class UM_Admin_Enqueue {
|
|
82 |
wp_register_style('um_admin_form', um_url . 'admin/assets/css/um-admin-form.css' );
|
83 |
wp_enqueue_style('um_admin_form');
|
84 |
|
85 |
-
wp_register_script('um_admin_form', um_url . 'admin/assets/js/um-admin-form.js' );
|
86 |
wp_enqueue_script('um_admin_form');
|
87 |
|
88 |
}
|
@@ -95,7 +95,7 @@ class UM_Admin_Enqueue {
|
|
95 |
wp_register_style('um_admin_dashboard', um_url . 'admin/assets/css/um-admin-dashboard.css' );
|
96 |
wp_enqueue_style('um_admin_dashboard');
|
97 |
|
98 |
-
wp_register_script('um_admin_dashboard', um_url . 'admin/assets/js/um-admin-dashboard.js' );
|
99 |
wp_enqueue_script('um_admin_dashboard');
|
100 |
|
101 |
}
|
@@ -108,7 +108,7 @@ class UM_Admin_Enqueue {
|
|
108 |
wp_register_style('um_admin_modal', um_url . 'admin/assets/css/um-admin-modal.css' );
|
109 |
wp_enqueue_style('um_admin_modal');
|
110 |
|
111 |
-
wp_register_script('um_admin_modal', um_url . 'admin/assets/js/um-admin-modal.js' );
|
112 |
wp_enqueue_script('um_admin_modal');
|
113 |
|
114 |
}
|
@@ -118,7 +118,7 @@ class UM_Admin_Enqueue {
|
|
118 |
***/
|
119 |
function load_field(){
|
120 |
|
121 |
-
wp_register_script('um_admin_field', um_url . 'admin/assets/js/um-admin-field.js' );
|
122 |
wp_enqueue_script('um_admin_field');
|
123 |
|
124 |
}
|
@@ -128,7 +128,7 @@ class UM_Admin_Enqueue {
|
|
128 |
***/
|
129 |
function load_users_js(){
|
130 |
|
131 |
-
wp_register_script('um_admin_users', um_url . 'admin/assets/js/um-admin-users.js' );
|
132 |
wp_enqueue_script('um_admin_users');
|
133 |
|
134 |
}
|
@@ -138,10 +138,10 @@ class UM_Admin_Enqueue {
|
|
138 |
***/
|
139 |
function load_builder(){
|
140 |
|
141 |
-
wp_register_script('um_admin_builder', um_url . 'admin/assets/js/um-admin-builder.js' );
|
142 |
wp_enqueue_script('um_admin_builder');
|
143 |
|
144 |
-
wp_register_script('um_admin_dragdrop', um_url . 'admin/assets/js/um-admin-dragdrop.js' );
|
145 |
wp_enqueue_script('um_admin_dragdrop');
|
146 |
|
147 |
wp_register_style('um_admin_builder', um_url . 'admin/assets/css/um-admin-builder.css' );
|
@@ -193,7 +193,7 @@ class UM_Admin_Enqueue {
|
|
193 |
***/
|
194 |
function load_custom_scripts(){
|
195 |
|
196 |
-
wp_register_script('um_admin_scripts', um_url . 'admin/assets/js/um-admin-scripts.js' );
|
197 |
wp_enqueue_script('um_admin_scripts');
|
198 |
|
199 |
}
|
@@ -203,7 +203,7 @@ class UM_Admin_Enqueue {
|
|
203 |
***/
|
204 |
function load_ajax_js(){
|
205 |
|
206 |
-
wp_register_script('um_admin_ajax', um_url . 'admin/assets/js/um-admin-ajax.js' );
|
207 |
wp_enqueue_script('um_admin_ajax');
|
208 |
|
209 |
}
|
@@ -232,6 +232,8 @@ class UM_Admin_Enqueue {
|
|
232 |
if ( strstr( $screen_id, 'ultimatemember') || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') )return true;
|
233 |
|
234 |
if ( $screen_id == 'nav-menus' ) return true;
|
|
|
|
|
235 |
|
236 |
return false;
|
237 |
|
@@ -269,14 +271,6 @@ class UM_Admin_Enqueue {
|
|
269 |
$this->load_ajax_js();
|
270 |
$this->load_custom_scripts();
|
271 |
|
272 |
-
} else if ( isset( $post->post_type ) ) {
|
273 |
-
|
274 |
-
$ultimatemember->styles->wp_enqueue_scripts();
|
275 |
-
|
276 |
-
$this->load_global_css();
|
277 |
-
$this->load_css();
|
278 |
-
$this->load_custom_scripts();
|
279 |
-
|
280 |
}
|
281 |
|
282 |
}
|
82 |
wp_register_style('um_admin_form', um_url . 'admin/assets/css/um-admin-form.css' );
|
83 |
wp_enqueue_style('um_admin_form');
|
84 |
|
85 |
+
wp_register_script('um_admin_form', um_url . 'admin/assets/js/um-admin-form.js', '', '', true );
|
86 |
wp_enqueue_script('um_admin_form');
|
87 |
|
88 |
}
|
95 |
wp_register_style('um_admin_dashboard', um_url . 'admin/assets/css/um-admin-dashboard.css' );
|
96 |
wp_enqueue_style('um_admin_dashboard');
|
97 |
|
98 |
+
wp_register_script('um_admin_dashboard', um_url . 'admin/assets/js/um-admin-dashboard.js', '', '', true );
|
99 |
wp_enqueue_script('um_admin_dashboard');
|
100 |
|
101 |
}
|
108 |
wp_register_style('um_admin_modal', um_url . 'admin/assets/css/um-admin-modal.css' );
|
109 |
wp_enqueue_style('um_admin_modal');
|
110 |
|
111 |
+
wp_register_script('um_admin_modal', um_url . 'admin/assets/js/um-admin-modal.js', '', '', true );
|
112 |
wp_enqueue_script('um_admin_modal');
|
113 |
|
114 |
}
|
118 |
***/
|
119 |
function load_field(){
|
120 |
|
121 |
+
wp_register_script('um_admin_field', um_url . 'admin/assets/js/um-admin-field.js', '', '', true );
|
122 |
wp_enqueue_script('um_admin_field');
|
123 |
|
124 |
}
|
128 |
***/
|
129 |
function load_users_js(){
|
130 |
|
131 |
+
wp_register_script('um_admin_users', um_url . 'admin/assets/js/um-admin-users.js', '', '', true );
|
132 |
wp_enqueue_script('um_admin_users');
|
133 |
|
134 |
}
|
138 |
***/
|
139 |
function load_builder(){
|
140 |
|
141 |
+
wp_register_script('um_admin_builder', um_url . 'admin/assets/js/um-admin-builder.js', '', '', true );
|
142 |
wp_enqueue_script('um_admin_builder');
|
143 |
|
144 |
+
wp_register_script('um_admin_dragdrop', um_url . 'admin/assets/js/um-admin-dragdrop.js', '', '', true );
|
145 |
wp_enqueue_script('um_admin_dragdrop');
|
146 |
|
147 |
wp_register_style('um_admin_builder', um_url . 'admin/assets/css/um-admin-builder.css' );
|
193 |
***/
|
194 |
function load_custom_scripts(){
|
195 |
|
196 |
+
wp_register_script('um_admin_scripts', um_url . 'admin/assets/js/um-admin-scripts.js', '', '', true );
|
197 |
wp_enqueue_script('um_admin_scripts');
|
198 |
|
199 |
}
|
203 |
***/
|
204 |
function load_ajax_js(){
|
205 |
|
206 |
+
wp_register_script('um_admin_ajax', um_url . 'admin/assets/js/um-admin-ajax.js', '', '', true );
|
207 |
wp_enqueue_script('um_admin_ajax');
|
208 |
|
209 |
}
|
232 |
if ( strstr( $screen_id, 'ultimatemember') || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') )return true;
|
233 |
|
234 |
if ( $screen_id == 'nav-menus' ) return true;
|
235 |
+
|
236 |
+
if ( isset( $post->post_type ) ) return true;
|
237 |
|
238 |
return false;
|
239 |
|
271 |
$this->load_ajax_js();
|
272 |
$this->load_custom_scripts();
|
273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
}
|
275 |
|
276 |
}
|
core/um-rewrite.php
CHANGED
@@ -90,7 +90,9 @@ class UM_Rewrite {
|
|
90 |
|
91 |
// Try nice name
|
92 |
if ( !$user_id ) {
|
93 |
-
$
|
|
|
|
|
94 |
if ( isset( $the_user->ID ) ){
|
95 |
$user_id = $the_user->ID;
|
96 |
}
|
90 |
|
91 |
// Try nice name
|
92 |
if ( !$user_id ) {
|
93 |
+
$slug = um_queried_user();
|
94 |
+
$slug = str_replace('.','-',$slug);
|
95 |
+
$the_user = get_user_by( 'slug', $slug );
|
96 |
if ( isset( $the_user->ID ) ){
|
97 |
$user_id = $the_user->ID;
|
98 |
}
|
core/um-setup.php
CHANGED
@@ -345,12 +345,13 @@ class UM_Setup {
|
|
345 |
'post_title' => $array['title'],
|
346 |
'post_content' => $content,
|
347 |
'post_name' => $slug,
|
348 |
-
'post_type' => '
|
349 |
'post_status' => 'publish',
|
350 |
'post_author' => um_user('ID'),
|
351 |
);
|
352 |
|
353 |
$post_id = wp_insert_post( $user_page );
|
|
|
354 |
|
355 |
update_post_meta($post_id, '_um_core', $slug);
|
356 |
|
345 |
'post_title' => $array['title'],
|
346 |
'post_content' => $content,
|
347 |
'post_name' => $slug,
|
348 |
+
'post_type' => 'post',
|
349 |
'post_status' => 'publish',
|
350 |
'post_author' => um_user('ID'),
|
351 |
);
|
352 |
|
353 |
$post_id = wp_insert_post( $user_page );
|
354 |
+
wp_update_post( array('ID' => $post_id, 'post_type' => 'page' ) );
|
355 |
|
356 |
update_post_meta($post_id, '_um_core', $slug);
|
357 |
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress
|
6 |
-
Version: 1.0.
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
*/
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress
|
6 |
+
Version: 1.0.46
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
*/
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: access control, author, authors, author profile, comments, community, comm
|
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1
|
9 |
|
10 |
-
Stable Tag: 1.0.
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
@@ -124,6 +124,7 @@ Ultimate Member has been translated into the following languages:
|
|
124 |
|
125 |
* English (US)
|
126 |
* French
|
|
|
127 |
* German
|
128 |
* Italian
|
129 |
* Turkish
|
@@ -185,6 +186,15 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
185 |
|
186 |
== Changelog ==
|
187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
= 1.0.45: February 8, 2015 =
|
189 |
|
190 |
* Fixed: Multisite bug php Fatal error: call to undefined function wpmu_delete_user()
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1
|
9 |
|
10 |
+
Stable Tag: 1.0.46
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
124 |
|
125 |
* English (US)
|
126 |
* French
|
127 |
+
* Spanish
|
128 |
* German
|
129 |
* Italian
|
130 |
* Turkish
|
186 |
|
187 |
== Changelog ==
|
188 |
|
189 |
+
= 1.0.46: February 8, 2015 =
|
190 |
+
|
191 |
+
(Update Recommended)
|
192 |
+
|
193 |
+
* New: added Spanish language pack
|
194 |
+
* Fixed: important JS conflict in admin when UM is active
|
195 |
+
* Fixed: profile permalink issue for e-mail usernames
|
196 |
+
* Fixed: installation issue on some WP databases
|
197 |
+
|
198 |
= 1.0.45: February 8, 2015 =
|
199 |
|
200 |
* Fixed: Multisite bug php Fatal error: call to undefined function wpmu_delete_user()
|
um-init.php
CHANGED
@@ -16,10 +16,11 @@ class UM_API {
|
|
16 |
|
17 |
$this->available_languages = array(
|
18 |
'en_US' => 'English (US)',
|
|
|
19 |
'fr_FR' => 'Français',
|
|
|
20 |
'de_DE' => 'Deutsch',
|
21 |
'tr_TR' => 'Türkçe',
|
22 |
-
'it_IT' => 'Italiano'
|
23 |
);
|
24 |
|
25 |
}
|
16 |
|
17 |
$this->available_languages = array(
|
18 |
'en_US' => 'English (US)',
|
19 |
+
'es_ES' => 'Español',
|
20 |
'fr_FR' => 'Français',
|
21 |
+
'it_IT' => 'Italiano',
|
22 |
'de_DE' => 'Deutsch',
|
23 |
'tr_TR' => 'Türkçe',
|
|
|
24 |
);
|
25 |
|
26 |
}
|