Ultimate Member – User Profile & Membership Plugin - Version 1.3.26

Version Description

Download this release

Release Info

Developer ultimatemember
Plugin Icon 128x128 Ultimate Member – User Profile & Membership Plugin
Version 1.3.26
Comparing to
See all releases

Code changes from version 1.3.25 to 1.3.26

admin/core/um-admin-actions.php CHANGED
@@ -140,7 +140,8 @@
140
  add_action('um_admin_before_access_settings', 'um_admin_wpml_post_options', 10, 1 );
141
  function um_admin_wpml_post_options( $instance ) {
142
 
143
- if ( !defined('ICL_SITEPRESS_VERSION') ) return;
 
144
 
145
  ?>
146
 
140
  add_action('um_admin_before_access_settings', 'um_admin_wpml_post_options', 10, 1 );
141
  function um_admin_wpml_post_options( $instance ) {
142
 
143
+ if ( !function_exists('icl_get_current_language') )
144
+ return;
145
 
146
  ?>
147
 
admin/core/um-admin-dashboard.php CHANGED
@@ -151,7 +151,11 @@ class UM_Admin_Dashboard {
151
  *** @extension menu
152
  ***/
153
  function extension_menu() {
 
154
  add_submenu_page( $this->slug, __('Extensions', $this->slug), '<span style="color: #00B9EB">' .__('Extensions', $this->slug) . '</span>', 'manage_options', $this->slug . '-extensions', array(&$this, 'admin_page') );
 
 
 
155
  }
156
 
157
  /***
151
  *** @extension menu
152
  ***/
153
  function extension_menu() {
154
+
155
  add_submenu_page( $this->slug, __('Extensions', $this->slug), '<span style="color: #00B9EB">' .__('Extensions', $this->slug) . '</span>', 'manage_options', $this->slug . '-extensions', array(&$this, 'admin_page') );
156
+
157
+ remove_submenu_page('tools.php','redux-about');
158
+
159
  }
160
 
161
  /***
admin/templates/extensions.php CHANGED
@@ -1,5 +1,12 @@
1
  <?php
2
 
 
 
 
 
 
 
 
3
  $premium['social-activity'] = array(
4
  'url' => 'https://ultimatemember.com/extensions/social-activity/',
5
  'image' => 'https://ultimatemember.com/wp-content/uploads/2015/08/socialactivity1.png',
1
  <?php
2
 
3
+ $premium['verified-users'] = array(
4
+ 'url' => 'https://ultimatemember.com/extensions/verified-users/',
5
+ 'image' => 'https://ultimatemember.com/wp-content/uploads/2015/09/image.png',
6
+ 'name' => 'Verified Users',
7
+ 'desc' => 'Add a user verficiation system to your site so users can request verification and be manually verified by site admin.',
8
+ );
9
+
10
  $premium['social-activity'] = array(
11
  'url' => 'https://ultimatemember.com/extensions/social-activity/',
12
  'image' => 'https://ultimatemember.com/wp-content/uploads/2015/08/socialactivity1.png',
core/um-actions-account.php CHANGED
@@ -53,7 +53,7 @@
53
 
54
  $url = add_query_arg( 'updated', 'account', $url );
55
 
56
- if ( defined('ICL_SITEPRESS_VERSION') ) {
57
  if ( icl_get_current_language() != icl_get_default_language() ) {
58
  $url = $ultimatemember->permalinks->get_current_url( true );
59
  $url = add_query_arg( 'updated', 'account', $url );
53
 
54
  $url = add_query_arg( 'updated', 'account', $url );
55
 
56
+ if ( function_exists('icl_get_current_language') ) {
57
  if ( icl_get_current_language() != icl_get_default_language() ) {
58
  $url = $ultimatemember->permalinks->get_current_url( true );
59
  $url = add_query_arg( 'updated', 'account', $url );
core/um-actions-global.php CHANGED
@@ -51,4 +51,5 @@
51
 
52
  <script type="text/javascript">jQuery( '#<?php echo $ultimatemember->honeypot; ?>' ).val( '' );</script>
53
 
54
- <?php }
 
51
 
52
  <script type="text/javascript">jQuery( '#<?php echo $ultimatemember->honeypot; ?>' ).val( '' );</script>
53
 
54
+ <?php
55
+ }
core/um-actions-members.php CHANGED
@@ -283,7 +283,7 @@
283
 
284
  ?>
285
 
286
- <div class="um-member-metaline"><span><strong><?php echo $ultimatemember->fields->get_label( $key ); ?>:</strong> <?php echo $value; ?></span></div>
287
 
288
  <?php
289
  }
283
 
284
  ?>
285
 
286
+ <div class="um-member-metaline um-member-metaline-<?php echo $key; ?>"><span><strong><?php echo $ultimatemember->fields->get_label( $key ); ?>:</strong> <?php echo $value; ?></span></div>
287
 
288
  <?php
289
  }
core/um-filters-login.php CHANGED
@@ -90,6 +90,6 @@
90
 
91
  }
92
 
93
- return wp_authenticate_username_password( null, $username, $password );
94
 
95
  }
90
 
91
  }
92
 
93
+ return wp_authenticate_username_password( $user, $username, $password );
94
 
95
  }
core/um-mail.php CHANGED
@@ -30,7 +30,7 @@ class UM_Mail {
30
  function email_template( $template, $args = array() ) {
31
  $lang = '';
32
 
33
- if ( defined('ICL_SITEPRESS_VERSION') ) {
34
  if ( icl_get_current_language() != 'en' ) {
35
  $lang = icl_get_current_language() . '/';
36
  }
30
  function email_template( $template, $args = array() ) {
31
  $lang = '';
32
 
33
+ if ( function_exists('icl_get_current_language') ) {
34
  if ( icl_get_current_language() != 'en' ) {
35
  $lang = icl_get_current_language() . '/';
36
  }
core/um-members.php CHANGED
@@ -12,6 +12,7 @@ class UM_Members {
12
  'user_login',
13
  'username',
14
  'display_name',
 
15
  );
16
 
17
  }
@@ -23,7 +24,7 @@ class UM_Members {
23
  if ( is_admin() ) {
24
  $search_columns[] = 'display_name';
25
  } else {
26
- $search_columns = array('display_name');
27
  }
28
  return $search_columns;
29
  }
12
  'user_login',
13
  'username',
14
  'display_name',
15
+ 'user_email',
16
  );
17
 
18
  }
24
  if ( is_admin() ) {
25
  $search_columns[] = 'display_name';
26
  } else {
27
+ $search_columns = array('display_name','user_email');
28
  }
29
  return $search_columns;
30
  }
core/um-permalinks.php CHANGED
@@ -136,7 +136,7 @@ class UM_Permalinks {
136
  $page_id = $this->core['user'];
137
  $profile_url = get_permalink( $page_id );
138
 
139
- if ( defined('ICL_SITEPRESS_VERSION') && icl_get_current_language() != icl_get_default_language() ) {
140
  if ( get_the_ID() > 0 && get_post_meta( get_the_ID(), '_um_wpml_user', true ) == 1 ) {
141
  $profile_url = get_permalink( get_the_ID() );
142
  }
136
  $page_id = $this->core['user'];
137
  $profile_url = get_permalink( $page_id );
138
 
139
+ if ( function_exists('icl_get_current_language') && icl_get_current_language() != icl_get_default_language() ) {
140
  if ( get_the_ID() > 0 && get_post_meta( get_the_ID(), '_um_wpml_user', true ) == 1 ) {
141
  $profile_url = get_permalink( get_the_ID() );
142
  }
core/um-query.php CHANGED
@@ -12,6 +12,11 @@ class UM_Query {
12
  *** @get wp pages
13
  ***/
14
  function wp_pages() {
 
 
 
 
 
15
  $pages = get_pages();
16
  $array = '';
17
  foreach ($pages as $page_data) {
12
  *** @get wp pages
13
  ***/
14
  function wp_pages() {
15
+ $count_pages = wp_count_posts('page');
16
+
17
+ if ( $count_pages->publish > 300 )
18
+ return;
19
+
20
  $pages = get_pages();
21
  $array = '';
22
  foreach ($pages as $page_data) {
core/um-rewrite.php CHANGED
@@ -32,7 +32,7 @@ class UM_Rewrite {
32
 
33
  global $ultimatemember;
34
 
35
- if ( isset( $ultimatemember->permalinks->core['user'] ) ) {
36
 
37
  $user_page_id = $ultimatemember->permalinks->core['user'];
38
  $account_page_id = $ultimatemember->permalinks->core['account'];
32
 
33
  global $ultimatemember;
34
 
35
+ if ( isset( $ultimatemember->permalinks->core['user'] ) && !um_get_option('um_flush_stop') ) {
36
 
37
  $user_page_id = $ultimatemember->permalinks->core['user'];
38
  $account_page_id = $ultimatemember->permalinks->core['account'];
core/um-short-functions.php CHANGED
@@ -447,7 +447,7 @@ function um_profile_id() {
447
  $url = add_query_arg( 'updated', esc_attr( $updated ), $url );
448
  }
449
 
450
- if ( defined('ICL_SITEPRESS_VERSION') && icl_get_current_language() != icl_get_default_language() && $slug == 'account' ) {
451
  if ( get_post_meta( get_the_ID() , '_um_wpml_account', true ) == 1 ) {
452
  $url = get_permalink( get_the_ID() );
453
  }
447
  $url = add_query_arg( 'updated', esc_attr( $updated ), $url );
448
  }
449
 
450
+ if ( function_exists('icl_get_current_language') && icl_get_current_language() != icl_get_default_language() && $slug == 'account' ) {
451
  if ( get_post_meta( get_the_ID() , '_um_wpml_account', true ) == 1 ) {
452
  $url = get_permalink( get_the_ID() );
453
  }
core/um-user.php CHANGED
@@ -652,7 +652,9 @@ class UM_User {
652
  /***
653
  *** @Update one key in user meta
654
  ***/
655
- function update_usermeta_info( $key ){
 
 
656
  update_user_meta( $this->id, $key, $this->profile[$key] );
657
  }
658
 
652
  /***
653
  *** @Update one key in user meta
654
  ***/
655
+ function update_usermeta_info( $key ) {
656
+ // delete the key first just in case
657
+ delete_user_meta( $this->id, $key );
658
  update_user_meta( $this->id, $key, $this->profile[$key] );
659
  }
660
 
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.25
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.3.26
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.3
9
 
10
- Stable Tag: 1.3.25
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
@@ -54,6 +54,7 @@ Ultimate Member has a range of extensions that allow you to extend the power of
54
  * [bbPress](https://ultimatemember.com/extensions/bbpress/) - With the bbPress extension you can beautifully integrate Ultimate Member with bbPress
55
  * [MailChimp](https://ultimatemember.com/extensions/mailchimp/) - Allow users to subscribe to your MailChimp lists when they signup on your site and sync user meta to MailChimp
56
  * [User Reviews](https://ultimatemember.com/extensions/user-reviews/) - Allow users to rate & review each other using a 5 star rate/review system
 
57
  * [myCRED](https://ultimatemember.com/extensions/mycred/) - With the myCRED extension you can integrate Ultimate Member with the popular myCRED points management plugin
58
  * [Notices](https://ultimatemember.com/extensions/notices/) - Alert users to important information using conditional notices
59
  * [Profile Completeness](https://ultimatemember.com/extensions/profile-completeness/) - Encourage or force users to complete their profiles with the profile completeness extension
@@ -89,6 +90,7 @@ Ultimate Member has been translated into the following languages:
89
  * Swedish - Svenska
90
  * Polish - Polski
91
  * Czech
 
92
  * Russian - Русский
93
  * Turkish - Türkçe
94
  * Farsi - فارسى
@@ -152,6 +154,17 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
152
 
153
  == Changelog ==
154
 
 
 
 
 
 
 
 
 
 
 
 
155
  = 1.3.25: September 7, 2015 =
156
 
157
  * Fixed: 404 error on UM pages
7
  Requires at least: 4.1
8
  Tested up to: 4.3
9
 
10
+ Stable Tag: 1.3.26
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
54
  * [bbPress](https://ultimatemember.com/extensions/bbpress/) - With the bbPress extension you can beautifully integrate Ultimate Member with bbPress
55
  * [MailChimp](https://ultimatemember.com/extensions/mailchimp/) - Allow users to subscribe to your MailChimp lists when they signup on your site and sync user meta to MailChimp
56
  * [User Reviews](https://ultimatemember.com/extensions/user-reviews/) - Allow users to rate & review each other using a 5 star rate/review system
57
+ * [Verified Users](https://ultimatemember.com/extensions/verified-users/) - Add a user verficiation system to your site so user accounts can be verified
58
  * [myCRED](https://ultimatemember.com/extensions/mycred/) - With the myCRED extension you can integrate Ultimate Member with the popular myCRED points management plugin
59
  * [Notices](https://ultimatemember.com/extensions/notices/) - Alert users to important information using conditional notices
60
  * [Profile Completeness](https://ultimatemember.com/extensions/profile-completeness/) - Encourage or force users to complete their profiles with the profile completeness extension
90
  * Swedish - Svenska
91
  * Polish - Polski
92
  * Czech
93
+ * Greek
94
  * Russian - Русский
95
  * Turkish - Türkçe
96
  * Farsi - فارسى
154
 
155
  == Changelog ==
156
 
157
+ = 1.3.26: September 25, 2015 =
158
+
159
+ * New: added Greek language support
160
+ * Tweak: added custom class to every user meta in member directory
161
+ * Tweak: added option to stop flushing rewrite rules every load (performance tweak)
162
+ * Fixed: WPML issue on multisite install
163
+ * Fixed: Removed redux menu from tools
164
+ * Fixed: fix for wp_authenticate_username_password()
165
+ * Fixed: searching users by e-mail address
166
+ * Fixed: conflict with sites with thousands of pages
167
+
168
  = 1.3.25: September 7, 2015 =
169
 
170
  * Fixed: 404 error on UM pages
um-config.php CHANGED
@@ -1827,6 +1827,16 @@ $this->sections[] = array(
1827
  'full_width' => true,
1828
  ),
1829
 
 
 
 
 
 
 
 
 
 
 
1830
  array(
1831
  'id' => 'current_url_method',
1832
  'type' => 'select',
1827
  'full_width' => true,
1828
  ),
1829
 
1830
+ array(
1831
+ 'id' => 'um_flush_stop',
1832
+ 'type' => 'switch',
1833
+ 'title' => __( 'Stop rewriting rules on every load','ultimatemember' ),
1834
+ 'default' => 0,
1835
+ 'desc' => __('Turn on If you have performance issue and are not getting 404 error/conflicts with other plugins/themes.','ultimatemember'),
1836
+ 'on' => __('On','ultimatemember'),
1837
+ 'off' => __('Off','ultimatemember'),
1838
+ ),
1839
+
1840
  array(
1841
  'id' => 'current_url_method',
1842
  'type' => 'select',
um-init.php CHANGED
@@ -31,6 +31,7 @@ class UM_API {
31
  'sv_SE' => 'Svenska',
32
  'pl_PL' => 'Polski',
33
  'cs_CZ' => 'Czech',
 
34
  'ru_RU' => 'Русский',
35
  'tr_TR' => 'Türkçe',
36
  'fa_IR' => 'Farsi',
31
  'sv_SE' => 'Svenska',
32
  'pl_PL' => 'Polski',
33
  'cs_CZ' => 'Czech',
34
+ 'el' => 'Greek',
35
  'ru_RU' => 'Русский',
36
  'tr_TR' => 'Türkçe',
37
  'fa_IR' => 'Farsi',