Version Description
Download this release
Release Info
Developer | champsupertramp |
Plugin | Ultimate Member – User Profile & Membership Plugin |
Version | 1.3.52 |
Comparing to | |
See all releases |
Code changes from version 1.3.51 to 1.3.52
- admin/core/lib/ReduxFramework/ReduxCore/core/enqueue.php +2 -3
- admin/core/um-admin-access.php +7 -2
- core/um-actions-login.php +14 -2
- core/um-filters-login.php +1 -1
- core/um-rewrite.php +1 -1
- core/um-short-functions.php +1 -1
- index.php +1 -1
- readme.txt +8 -1
admin/core/lib/ReduxFramework/ReduxCore/core/enqueue.php
CHANGED
@@ -80,12 +80,11 @@
|
|
80 |
//*****************************************************************
|
81 |
// Select2 CSS
|
82 |
//*****************************************************************
|
83 |
-
|
84 |
'select2-css',
|
85 |
-
/*'//cdn.jsdelivr.net/select2/3.5.2/select2.css',*/
|
86 |
ReduxFramework::$_url . 'assets/css/select2.css',
|
87 |
array(),
|
88 |
-
'3.5.2'
|
89 |
'all'
|
90 |
);
|
91 |
|
80 |
//*****************************************************************
|
81 |
// Select2 CSS
|
82 |
//*****************************************************************
|
83 |
+
wp_enqueue_style(
|
84 |
'select2-css',
|
|
|
85 |
ReduxFramework::$_url . 'assets/css/select2.css',
|
86 |
array(),
|
87 |
+
'3.5.2',
|
88 |
'all'
|
89 |
);
|
90 |
|
admin/core/um-admin-access.php
CHANGED
@@ -35,6 +35,7 @@ class UM_Admin_Access {
|
|
35 |
***/
|
36 |
function core_post_type( $post_type ){
|
37 |
|
|
|
38 |
if ( strstr($post_type, 'um_') )
|
39 |
return true;
|
40 |
|
@@ -99,8 +100,12 @@ class UM_Admin_Access {
|
|
99 |
foreach($types as $post_type) {
|
100 |
|
101 |
if ( !$this->core_post_type( $post_type ) ) {
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
104 |
|
105 |
}
|
106 |
|
35 |
***/
|
36 |
function core_post_type( $post_type ){
|
37 |
|
38 |
+
|
39 |
if ( strstr($post_type, 'um_') )
|
40 |
return true;
|
41 |
|
100 |
foreach($types as $post_type) {
|
101 |
|
102 |
if ( !$this->core_post_type( $post_type ) ) {
|
103 |
+
|
104 |
+
$current_screen = get_current_screen();
|
105 |
+
|
106 |
+
if( ! in_array( $current_screen->id, array("upload","media","attachment") ) ) {
|
107 |
+
add_meta_box('um-admin-access-settings', __('Ultimate Member'), array(&$this, 'load_metabox_form'), $post_type, 'side', 'default');
|
108 |
+
}
|
109 |
|
110 |
}
|
111 |
|
core/um-actions-login.php
CHANGED
@@ -9,8 +9,10 @@
|
|
9 |
|
10 |
$is_email = false;
|
11 |
|
12 |
-
|
13 |
-
|
|
|
|
|
14 |
|
15 |
if ( isset( $args['username'] ) && $args['username'] == '' ) {
|
16 |
$ultimatemember->form->add_error( 'username', __('Please enter your username or email','ultimatemember') );
|
@@ -284,3 +286,13 @@
|
|
284 |
echo $ultimatemember->fields->display( 'login', $args );
|
285 |
|
286 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
$is_email = false;
|
11 |
|
12 |
+
$form_id = $args['form_id'];
|
13 |
+
$mode = $args['mode'];
|
14 |
+
$user_password = $args['user_password'];
|
15 |
+
|
16 |
|
17 |
if ( isset( $args['username'] ) && $args['username'] == '' ) {
|
18 |
$ultimatemember->form->add_error( 'username', __('Please enter your username or email','ultimatemember') );
|
286 |
echo $ultimatemember->fields->display( 'login', $args );
|
287 |
|
288 |
}
|
289 |
+
|
290 |
+
/**
|
291 |
+
* Remove authenticate filter
|
292 |
+
* @uses 'wp_authenticate_username_password_before'
|
293 |
+
*/
|
294 |
+
add_action('wp_authenticate_username_password_before','um_auth_username_password_before',10,3);
|
295 |
+
function um_auth_username_password_before( $user, $username, $password ){
|
296 |
+
remove_filter( 'authenticate', 'wp_authenticate_username_password', 20, 3 );
|
297 |
+
}
|
298 |
+
|
core/um-filters-login.php
CHANGED
@@ -66,7 +66,7 @@
|
|
66 |
add_filter('authenticate', 'um_wp_form_errors_hook_logincheck', 999, 3);
|
67 |
function um_wp_form_errors_hook_logincheck( $user, $username, $password ) {
|
68 |
|
69 |
-
|
70 |
|
71 |
if ( isset( $user->ID ) ) {
|
72 |
|
66 |
add_filter('authenticate', 'um_wp_form_errors_hook_logincheck', 999, 3);
|
67 |
function um_wp_form_errors_hook_logincheck( $user, $username, $password ) {
|
68 |
|
69 |
+
do_action('wp_authenticate_username_password_before', $user, $username, $password );
|
70 |
|
71 |
if ( isset( $user->ID ) ) {
|
72 |
|
core/um-rewrite.php
CHANGED
@@ -50,7 +50,7 @@ class UM_Rewrite {
|
|
50 |
|
51 |
if( function_exists('icl_get_current_language') ){
|
52 |
$language_code = icl_get_current_language();
|
53 |
-
}else if( function_exists('icl_object_id') ){
|
54 |
$language_code = ICL_LANGUAGE_CODE;
|
55 |
}
|
56 |
|
50 |
|
51 |
if( function_exists('icl_get_current_language') ){
|
52 |
$language_code = icl_get_current_language();
|
53 |
+
}else if( function_exists('icl_object_id') && defined('ICL_LANGUAGE_CODE') ){
|
54 |
$language_code = ICL_LANGUAGE_CODE;
|
55 |
}
|
56 |
|
core/um-short-functions.php
CHANGED
@@ -204,7 +204,7 @@
|
|
204 |
|
205 |
$replace = apply_filters('um_template_tags_replaces_hook', $replace);
|
206 |
|
207 |
-
$content = str_replace($search, $replace, $content);
|
208 |
|
209 |
if ( isset( $args['tags'] ) && isset( $args['tags_replace'] ) ) {
|
210 |
$content = str_replace($args['tags'], $args['tags_replace'], $content);
|
204 |
|
205 |
$replace = apply_filters('um_template_tags_replaces_hook', $replace);
|
206 |
|
207 |
+
$content = wp_kses_decode_entities( str_replace($search, $replace, $content) );
|
208 |
|
209 |
if ( isset( $args['tags'] ) && isset( $args['tags_replace'] ) ) {
|
210 |
$content = str_replace($args['tags'], $args['tags_replace'], $content);
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
-
Version: 1.3.
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
Text Domain: ultimatemember
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
+
Version: 1.3.52
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
Text Domain: ultimatemember
|
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.5
|
9 |
|
10 |
-
Stable Tag: 1.3.
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
@@ -149,6 +149,13 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
149 |
|
150 |
== Changelog ==
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
= 1.3.51: May 10, 2016 =
|
153 |
* Added: 'um_form_fields_textarea_settings' filter
|
154 |
* Added: reset password limit options
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.5
|
9 |
|
10 |
+
Stable Tag: 1.3.52
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
= 1.3.52: May 14, 2016 =
|
153 |
+
* Added: 'wp_authenticate_username_password_before' action hook
|
154 |
+
* Tweak: remove access settings in media screens
|
155 |
+
* Fixed: convert tags format
|
156 |
+
* Fixed: ReduxFramework notice
|
157 |
+
* Fixed: remove PHP notice
|
158 |
+
|
159 |
= 1.3.51: May 10, 2016 =
|
160 |
* Added: 'um_form_fields_textarea_settings' filter
|
161 |
* Added: reset password limit options
|