Update 1.0.87

This commit is contained in:
ultimatemember
2015-03-17 16:03:32 +02:00
parent 5815557192
commit 1653677136
8 changed files with 39 additions and 16 deletions
+2 -2
View File
@@ -500,10 +500,10 @@ class UM_Builtin {
),
'user_registered' => array(
'title' => __('Regisration Date','ultimatemember'),
'title' => __('Registration Date','ultimatemember'),
'metakey' => 'user_registered',
'type' => 'text',
'label' => __('Regisration Date','ultimatemember'),
'label' => __('Registration Date','ultimatemember'),
'required' => 0,
'public' => 1,
'editable' => 1,
+1 -1
View File
@@ -34,7 +34,7 @@
global $ultimatemember;
extract( $args );
if ( !current_user_can('manage_options') ) {
if ( !um_user_can('can_edit_everyone') ) {
$query_args['meta_query'][] = array(
'key' => 'account_status',
+13 -1
View File
@@ -499,6 +499,18 @@ function um_reset_user() {
return $url;
}
/***
*** @boolean for profile edit page
***/
function um_is_on_edit_profile() {
if ( isset( $_REQUEST['profiletab'] ) && isset( $_REQUEST['um_action'] ) ) {
if ( $_REQUEST['profiletab'] == 'main' && $_REQUEST['um_action'] == 'edit' ) {
return true;
}
}
return false;
}
/***
*** @can view field
***/
@@ -530,7 +542,7 @@ function um_reset_user() {
function um_can_view_profile( $user_id ){
global $ultimatemember;
if ( !current_user_can('manage_options') && !$ultimatemember->user->is_approved( $user_id ) ) {
if ( !um_current_user_can('edit', $user_id ) && !$ultimatemember->user->is_approved( $user_id ) ) {
return false;
}
+1 -1
View File
@@ -3,7 +3,7 @@
Plugin Name: Ultimate Member
Plugin URI: http://ultimatemember.com/
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
Version: 1.0.85
Version: 1.0.87
Author: Ultimate Member
Author URI: http://ultimatemember.com/
*/
+14 -3
View File
@@ -7,7 +7,7 @@ Tags: access control, author, authors, author profile, comments, community, comm
Requires at least: 4.1
Tested up to: 4.1.1
Stable Tag: 1.0.85
Stable Tag: 1.0.87
License: GNU Version 2 or Any Later Version
@@ -17,7 +17,7 @@ The easiest way to create powerful online communities and beautiful user profile
Ultimate Member is a powerful plugin that allows you to add beautiful user profiles to your site and create advanced online communities. The plugin enables users to sign up and become members of your site all from the front-end. With a focus on flexibility and simplicity creating a community and membership site with WordPress has never been so easy.
**Live Demo: Check out all of Ultimate Member's features on our [live demo](http://ultimatememberdemo.com/)!**
**Check out all of the plugin features on our [Live Demo](https://ultimatemember.com/).**
**Get support by posting in our [community forum](https://ultimatemember.com/forums/).**
@@ -47,9 +47,10 @@ Features of the plugin include:
You can extend the power of Ultimate Member with one of our premium extensions:
* [Social Login](https://ultimatemember.com/extensions/social-login/)
* [MailChimp](https://ultimatemember.com/extensions/mailchimp/)
* [bbPress](https://ultimatemember.com/extensions/bbpress/)
* [MailChimp](https://ultimatemember.com/extensions/mailchimp/)
* [myCRED](https://ultimatemember.com/extensions/mycred/)
* [Notices](https://ultimatemember.com/extensions/notices/)
**Free Extensions**
@@ -202,6 +203,16 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
== Changelog ==
= 1.0.87: March 17, 2015 =
* Tweak: profile edit form tweaked to be processed for profile edit only. allows you to have custom (not nested) valid forms in other profile tabs
= 1.0.86: March 16, 2015 =
* Tweak: UM admins can see unapproved users on front-end members directory
* Fixed: few misspelling errors
* Fixed: bug with custom profile templates (showing blank) resolved
= 1.0.85: March 14, 2015 =
* New: added option to show user social links in profile header (optional)
+3 -3
View File
@@ -8,13 +8,13 @@
do_action("um_before_form", $args);
do_action("um_before_{$template}_fields", $args);
do_action("um_before_{$mode}_fields", $args);
do_action("um_main_{$template}_fields", $args);
do_action("um_main_{$mode}_fields", $args);
do_action("um_after_form_fields", $args);
do_action("um_after_{$template}_fields", $args);
do_action("um_after_{$mode}_fields", $args);
do_action("um_after_form", $args);
+2 -2
View File
@@ -2,7 +2,7 @@
<div class="um-form">
<form method="post" action="">
<?php if ( um_is_on_edit_profile() ) { ?><form method="post" action=""><?php } ?>
<?php do_action('um_profile_header_cover_area', $args ); ?>
@@ -25,7 +25,7 @@
?>
</form>
<?php if ( um_is_on_edit_profile() ) { ?></form><?php } ?>
</div>
+3 -3
View File
@@ -8,13 +8,13 @@
do_action("um_before_form", $args);
do_action("um_before_{$template}_fields", $args);
do_action("um_before_{$mode}_fields", $args);
do_action("um_main_{$template}_fields", $args);
do_action("um_main_{$mode}_fields", $args);
do_action("um_after_form_fields", $args);
do_action("um_after_{$template}_fields", $args);
do_action("um_after_{$mode}_fields", $args);
do_action("um_after_form", $args);