Version Description
Download this release
Release Info
Developer | ultimatemember |
Plugin | Ultimate Member – User Profile & Membership Plugin |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- core/um-actions-account.php +4 -0
- core/um-actions-form.php +1 -1
- core/um-permalinks.php +1 -1
- core/um-query.php +5 -2
- core/um-tracking.php +1 -1
- index.php +1 -1
- readme.txt +8 -1
core/um-actions-account.php
CHANGED
@@ -80,6 +80,10 @@
|
|
80 |
if ( isset($_POST['user_email']) && !is_email( $_POST['user_email'] ) ) {
|
81 |
$ultimatemember->form->add_error('user_email', __('Please provide a valid e-mail','ultimatemember') );
|
82 |
}
|
|
|
|
|
|
|
|
|
83 |
|
84 |
}
|
85 |
$ultimatemember->account->current_tab = 'general';
|
80 |
if ( isset($_POST['user_email']) && !is_email( $_POST['user_email'] ) ) {
|
81 |
$ultimatemember->form->add_error('user_email', __('Please provide a valid e-mail','ultimatemember') );
|
82 |
}
|
83 |
+
|
84 |
+
if ( email_exists( $_POST['user_email'] ) && email_exists( $_POST['user_email'] ) != get_current_user_id() ) {
|
85 |
+
$ultimatemember->form->add_error('user_email', __('Email already linked to another account','ultimatemember') );
|
86 |
+
}
|
87 |
|
88 |
}
|
89 |
$ultimatemember->account->current_tab = 'general';
|
core/um-actions-form.php
CHANGED
@@ -95,7 +95,7 @@
|
|
95 |
foreach( $fields as $key => $array ) {
|
96 |
if ( isset( $args[$key] ) && !empty( $args[$key] ) ) {
|
97 |
if ( isset($array['validate']) && in_array( $array['validate'], array('unique_username','unique_email','unique_username_or_email') ) ) {
|
98 |
-
if ( preg_grep( "/".$args[$key]."/i" , $words ) ) {
|
99 |
$ultimatemember->form->add_error( $key, __('You are not allowed to use this word as your username.','ultimatemember') );
|
100 |
}
|
101 |
}
|
95 |
foreach( $fields as $key => $array ) {
|
96 |
if ( isset( $args[$key] ) && !empty( $args[$key] ) ) {
|
97 |
if ( isset($array['validate']) && in_array( $array['validate'], array('unique_username','unique_email','unique_username_or_email') ) ) {
|
98 |
+
if ( !$ultimatemember->form->has_error( $key ) && preg_grep( "/".$args[$key]."/i" , $words ) ) {
|
99 |
$ultimatemember->form->add_error( $key, __('You are not allowed to use this word as your username.','ultimatemember') );
|
100 |
}
|
101 |
}
|
core/um-permalinks.php
CHANGED
@@ -129,7 +129,7 @@ class UM_Permalinks {
|
|
129 |
***/
|
130 |
function profile_url() {
|
131 |
global $ultimatemember;
|
132 |
-
|
133 |
$profile_url = $this->core['user'];
|
134 |
$profile_url = get_permalink($profile_url);
|
135 |
|
129 |
***/
|
130 |
function profile_url() {
|
131 |
global $ultimatemember;
|
132 |
+
|
133 |
$profile_url = $this->core['user'];
|
134 |
$profile_url = get_permalink($profile_url);
|
135 |
|
core/um-query.php
CHANGED
@@ -44,18 +44,21 @@ class UM_Query {
|
|
44 |
function make( $args ) {
|
45 |
|
46 |
$defaults = array(
|
47 |
-
'post_type' => 'post'
|
|
|
48 |
);
|
49 |
$args = wp_parse_args( $args, $defaults );
|
50 |
|
51 |
if ( isset( $args['post__in'] ) && empty( $args['post__in'] ) )
|
52 |
return false;
|
53 |
-
|
54 |
extract( $args );
|
55 |
|
56 |
if ( $post_type == 'comment' ) { // comments
|
57 |
|
58 |
unset( $args['post_type'] );
|
|
|
|
|
59 |
$comments = get_comments($args);
|
60 |
return $comments;
|
61 |
|
44 |
function make( $args ) {
|
45 |
|
46 |
$defaults = array(
|
47 |
+
'post_type' => 'post',
|
48 |
+
'post_status' => array('publish')
|
49 |
);
|
50 |
$args = wp_parse_args( $args, $defaults );
|
51 |
|
52 |
if ( isset( $args['post__in'] ) && empty( $args['post__in'] ) )
|
53 |
return false;
|
54 |
+
|
55 |
extract( $args );
|
56 |
|
57 |
if ( $post_type == 'comment' ) { // comments
|
58 |
|
59 |
unset( $args['post_type'] );
|
60 |
+
unset( $args['post_status'] );
|
61 |
+
|
62 |
$comments = get_comments($args);
|
63 |
return $comments;
|
64 |
|
core/um-tracking.php
CHANGED
@@ -144,7 +144,7 @@ class UM_Tracking {
|
|
144 |
|
145 |
echo '<div class="updated" style="border-color: #3ba1da;"><p>';
|
146 |
|
147 |
-
echo __( 'Allow Ultimate Member to track plugin usage? Opt-in to tracking and our newsletter and we will immediately e-mail you a
|
148 |
|
149 |
echo '</p>';
|
150 |
|
144 |
|
145 |
echo '<div class="updated" style="border-color: #3ba1da;"><p>';
|
146 |
|
147 |
+
echo __( 'Allow Ultimate Member to track plugin usage? Opt-in to tracking and our newsletter and we will immediately e-mail you a 20% discount which you can use on any of our extensions. No sensitive data is tracked.', 'ultimatemember' );
|
148 |
|
149 |
echo '</p>';
|
150 |
|
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.1.
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
*/
|
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.1.1
|
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.1
|
9 |
|
10 |
-
Stable Tag: 1.1.
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
@@ -41,6 +41,7 @@ Features of the plugin include:
|
|
41 |
* Developer friendly with dozens of actions and filters
|
42 |
* Multi-site compatibility
|
43 |
* Mandrill compatibility
|
|
|
44 |
|
45 |
**Paid Extensions**
|
46 |
|
@@ -205,6 +206,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
205 |
|
206 |
== Changelog ==
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
= 1.1.0: March 27, 2015 =
|
209 |
|
210 |
* New: added multi language support to assign different languages to different forms (beta feature)
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1.1
|
9 |
|
10 |
+
Stable Tag: 1.1.1
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
41 |
* Developer friendly with dozens of actions and filters
|
42 |
* Multi-site compatibility
|
43 |
* Mandrill compatibility
|
44 |
+
* Multi language support
|
45 |
|
46 |
**Paid Extensions**
|
47 |
|
206 |
|
207 |
== Changelog ==
|
208 |
|
209 |
+
= 1.1.1: March 29, 2015 =
|
210 |
+
|
211 |
+
* Fixed: bug where you user could use an already existing e-mail in account page
|
212 |
+
* Fixed: bug with special characaters in username
|
213 |
+
* Fixed: bug with showing draft posts in user profile
|
214 |
+
|
215 |
= 1.1.0: March 27, 2015 =
|
216 |
|
217 |
* New: added multi language support to assign different languages to different forms (beta feature)
|