Ultimate Member – User Profile & Membership Plugin - Version 1.0.27

Version Description

Download this release

Release Info

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

Code changes from version 1.0.26 to 1.0.27

admin/core/um-admin-access.php CHANGED
@@ -60,7 +60,27 @@ class UM_Admin_Access {
60
***/
61
function load_metabox_form( $object, $box ) {
62
global $ultimatemember, $post;
63
- include_once um_path . 'admin/templates/access/settings.php';
64
wp_nonce_field( basename( __FILE__ ), 'um_admin_save_metabox_access_nonce' );
65
}
66
@@ -72,7 +92,9 @@ class UM_Admin_Access {
72
$types = get_post_types();
73
foreach($types as $post_type) {
74
if ( $this->core_post_type( $post_type ) ) return;
75
- add_meta_box('um-admin-access-control', __('Access Control'), array(&$this, 'load_metabox_form'), $post_type, 'side', 'default');
76
}
77
78
}
@@ -91,6 +113,12 @@ class UM_Admin_Access {
91
if ( !current_user_can( $post_type->cap->edit_post, $post_id ) ) return $post_id;
92
93
// save
94
foreach( $_POST as $k => $v ) {
95
if (strstr($k, '_um_')){
96
update_post_meta( $post_id, $k, $v);
60
***/
61
function load_metabox_form( $object, $box ) {
62
global $ultimatemember, $post;
63
+
64
+ $box['id'] = str_replace('um-admin-access-','', $box['id']);
65
+
66
+ if ( $box['id'] == 'builder' ) {
67
+ $UM_Builder = new UM_Admin_Builder();
68
+ $UM_Builder->form_id = get_the_ID();
69
+ }
70
+
71
+ preg_match('#\{.*?\}#s', $box['id'], $matches);
72
+
73
+ if ( isset($matches[0]) ){
74
+ $path = $matches[0];
75
+ $box['id'] = preg_replace('~(\\{[^}]+\\})~','', $box['id'] );
76
+ } else {
77
+ $path = um_path;
78
+ }
79
+
80
+ $path = str_replace('{','', $path );
81
+ $path = str_replace('}','', $path );
82
+
83
+ include_once $path . 'admin/templates/access/'. $box['id'] . '.php';
84
wp_nonce_field( basename( __FILE__ ), 'um_admin_save_metabox_access_nonce' );
85
}
86
92
$types = get_post_types();
93
foreach($types as $post_type) {
94
if ( $this->core_post_type( $post_type ) ) return;
95
+ add_meta_box('um-admin-access-settings', __('Access Control'), array(&$this, 'load_metabox_form'), $post_type, 'side', 'default');
96
+
97
+ do_action('um_admin_custom_access_metaboxes');
98
}
99
100
}
113
if ( !current_user_can( $post_type->cap->edit_post, $post_id ) ) return $post_id;
114
115
// save
116
+ $multi_choice_keys = apply_filters('um_admin_multi_choice_keys', array() );
117
+ if ( $multi_choice_keys ) {
118
+ foreach( $multi_choice_keys as $k ) {
119
+ delete_post_meta( $post_id, $k );
120
+ }
121
+ }
122
foreach( $_POST as $k => $v ) {
123
if (strstr($k, '_um_')){
124
update_post_meta( $post_id, $k, $v);
admin/core/um-admin-metabox.php CHANGED
@@ -181,7 +181,7 @@ class UM_Admin_Metabox {
181
*** @load a form metabox
182
***/
183
function load_metabox_form( $object, $box ) {
184
- global $ultimatemember;
185
186
$box['id'] = str_replace('um-admin-form-','', $box['id']);
187
181
*** @load a form metabox
182
***/
183
function load_metabox_form( $object, $box ) {
184
+ global $ultimatemember, $post;
185
186
$box['id'] = str_replace('um-admin-form-','', $box['id']);
187
core/um-actions-wpadmin.php CHANGED
@@ -63,7 +63,16 @@
63
if( !is_admin() && !um_user('can_access_wpadmin')) {
64
return false;
65
} else {
66
return true;
67
}
68
}
69
- add_filter( 'show_admin_bar' , 'um_control_admin_bar');
63
if( !is_admin() && !um_user('can_access_wpadmin')) {
64
return false;
65
} else {
66
+ um_fetch_user( get_current_user_id() );
67
return true;
68
}
69
}
70
+ add_filter( 'show_admin_bar' , 'um_control_admin_bar');
71
+
72
+ /***
73
+ *** @fix permission for admin bar
74
+ ***/
75
+ function um_force_admin_bar() {
76
+ um_reset_user();
77
+ }
78
+ add_action( 'wp_footer', 'um_force_admin_bar' );
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.26
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.27
7
Author: Ultimate Member
8
Author URI: http://ultimatemember.com/
9
*/
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.26
11
12
License: GNU Version 2 or Any Later Version
13
@@ -168,6 +168,11 @@ Yes. The plugin works fine with WordPress network / multisite now. In a recent u
168
169
== Changelog ==
170
171
= 1.0.26: January 26, 2015 =
172
173
* Fixed: Important issue fix (update recommended)
7
Requires at least: 4.1
8
Tested up to: 4.1
9
10
+ Stable Tag: 1.0.27
11
12
License: GNU Version 2 or Any Later Version
13
168
169
== Changelog ==
170
171
+ = 1.0.27: January 27, 2015 =
172
+
173
+ * Fixed: WP admin bar issue with some plugins and themes
174
+ * Fixed: conflict with WP Recent Comments With Avatars plugin
175
+
176
= 1.0.26: January 26, 2015 =
177
178
* Fixed: Important issue fix (update recommended)