Ultimate Member – User Profile & Membership Plugin - Version 1.0.31

Version Description

Download this release

Release Info

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

Code changes from version 1.0.30 to 1.0.31

core/um-rewrite.php CHANGED
@@ -34,11 +34,13 @@ class UM_Rewrite {
34
if ( isset( $ultimatemember->permalinks->core['user'] ) ) {
35
36
$user_page_id = $ultimatemember->permalinks->core['user'];
37
-
38
$account_page_id = $ultimatemember->permalinks->core['account'];
39
40
add_rewrite_rule(
41
- '^user/([^/]*)#x27;,
42
'index.php?page_id='.$user_page_id.'&um_user=$matches[1]',
43
'top'
44
);
34
if ( isset( $ultimatemember->permalinks->core['user'] ) ) {
35
36
$user_page_id = $ultimatemember->permalinks->core['user'];
37
$account_page_id = $ultimatemember->permalinks->core['account'];
38
39
+ $user = get_post($user_page_id);
40
+ $user_slug = $user->post_name;
41
+
42
add_rewrite_rule(
43
+ '^'.$user_slug.'/([^/]*)#x27;,
44
'index.php?page_id='.$user_page_id.'&um_user=$matches[1]',
45
'top'
46
);
core/um-setup.php CHANGED
@@ -147,6 +147,8 @@ class UM_Setup {
147
'_um_login_secondary_btn_hover' => '#e5e5e5',
148
'_um_login_secondary_btn_text' => '#666',
149
'_um_directory_template' => 'members',
150
);
151
152
$this->core_form_meta_all = apply_filters('um_core_form_meta_all', $this->core_form_meta_all );
147
'_um_login_secondary_btn_hover' => '#e5e5e5',
148
'_um_login_secondary_btn_text' => '#666',
149
'_um_directory_template' => 'members',
150
+ '_um_directory_header' => __('{total_users} Members','ultimatemember'),
151
+ '_um_directory_header_single' => __('{total_users} Member','ultimatemember'),
152
);
153
154
$this->core_form_meta_all = apply_filters('um_core_form_meta_all', $this->core_form_meta_all );
core/um-shortcodes.php CHANGED
@@ -219,22 +219,25 @@ class UM_Shortcodes {
219
$pattern_array = apply_filters('um_allowed_user_tags_patterns', $pattern_array);
220
221
$matches = false;
222
- foreach ( $pattern_array as $pattern )
223
- {
224
- if (preg_match($pattern, $str))
225
- {
226
$usermeta = str_replace('{','',$pattern);
227
$usermeta = str_replace('}','',$usermeta);
228
if ( um_user( $usermeta ) ){
229
$str = preg_replace('/'.$pattern.'/', um_user($usermeta) , $str );
230
}
231
- }
232
- }
233
-
234
- if ( get_option('permalink_structure') ) {
235
- $str = str_replace( untrailingslashit( um_get_core_page('user') ), untrailingslashit( um_user_profile_url() ), $str );
236
- } else {
237
- $str = str_replace( um_get_core_page('user'), um_user_profile_url(), $str );
238
}
239
240
return $str;
219
$pattern_array = apply_filters('um_allowed_user_tags_patterns', $pattern_array);
220
221
$matches = false;
222
+ foreach ( $pattern_array as $pattern ) {
223
+
224
+ if (preg_match($pattern, $str)) {
225
+
226
$usermeta = str_replace('{','',$pattern);
227
$usermeta = str_replace('}','',$usermeta);
228
+
229
if ( um_user( $usermeta ) ){
230
$str = preg_replace('/'.$pattern.'/', um_user($usermeta) , $str );
231
}
232
+
233
+ if ( get_option('permalink_structure') ) {
234
+ $str = str_replace( untrailingslashit( um_get_core_page('user') ), untrailingslashit( um_user_profile_url() ), $str );
235
+ } else {
236
+ $str = str_replace( um_get_core_page('user'), um_user_profile_url(), $str );
237
+ }
238
+
239
+ }
240
+
241
}
242
243
return $str;
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.30
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.31
7
Author: Ultimate Member
8
Author URI: http://ultimatemember.com/
9
*/
languages/ultimatemember-en_US.mo CHANGED
Binary file
languages/ultimatemember-en_US.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: Ultimate Member\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-01-29 15:23+0200\n"
6
- "PO-Revision-Date: 2015-01-29 15:23+0200\n"
7
"Last-Translator: Calum Allison <umplugin@gmail.com>\n"
8
"Language-Team: Ultimate Member <umplugin@gmail.com>\n"
9
"Language: en_US\n"
@@ -2573,7 +2573,7 @@ msgstr ""
2573
msgid "Customize the search result text . e.g. Found 3,000 Members. Leave this blank to not show result text"
2574
msgstr ""
2575
2576
- #: admin/templates/directory/search.php:79 core/um-setup.php:47
2577
msgid "{total_users} Members"
2578
msgstr ""
2579
@@ -2585,7 +2585,7 @@ msgstr ""
2585
msgid "Same as above but in case of 1 user found only"
2586
msgstr ""
2587
2588
- #: admin/templates/directory/search.php:88 core/um-setup.php:48
2589
msgid "{total_users} Member"
2590
msgstr ""
2591
2
msgstr ""
3
"Project-Id-Version: Ultimate Member\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-01-29 16:27+0200\n"
6
+ "PO-Revision-Date: 2015-01-29 16:27+0200\n"
7
"Last-Translator: Calum Allison <umplugin@gmail.com>\n"
8
"Language-Team: Ultimate Member <umplugin@gmail.com>\n"
9
"Language: en_US\n"
2573
msgid "Customize the search result text . e.g. Found 3,000 Members. Leave this blank to not show result text"
2574
msgstr ""
2575
2576
+ #: admin/templates/directory/search.php:79 core/um-setup.php:47 core/um-setup.php:150
2577
msgid "{total_users} Members"
2578
msgstr ""
2579
2585
msgid "Same as above but in case of 1 user found only"
2586
msgstr ""
2587
2588
+ #: admin/templates/directory/search.php:88 core/um-setup.php:48 core/um-setup.php:151
2589
msgid "{total_users} Member"
2590
msgstr ""
2591
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tags: access control, community, communities, conditional fields, conditional lo
7
Requires at least: 4.1
8
Tested up to: 4.1
9
10
- Stable Tag: 1.0.30
11
12
License: GNU Version 2 or Any Later Version
13
@@ -170,6 +170,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
170
171
== Changelog ==
172
173
= 1.0.30: January 29, 2015 =
174
175
* New: added option to control number of profiles to display in members directory for mobile devices
7
Requires at least: 4.1
8
Tested up to: 4.1
9
10
+ Stable Tag: 1.0.31
11
12
License: GNU Version 2 or Any Later Version
13
170
171
== Changelog ==
172
173
+ = 1.0.31: January 29, 2015 =
174
+
175
+ * Fixed: Issue with custom user page slug resolved [view issue](https://wordpress.org/support/topic/translate-plugin-9)
176
+ * Fixed: PHP warning in members directory resolved
177
+ * Fixed: Issue with hardcoded user profile URLs in menu
178
+
179
= 1.0.30: January 29, 2015 =
180
181
* New: added option to control number of profiles to display in members directory for mobile devices