diff --git a/core/um-builtin.php b/core/um-builtin.php index 46e2b628..36bfb3be 100644 --- a/core/um-builtin.php +++ b/core/um-builtin.php @@ -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, diff --git a/core/um-filters-members.php b/core/um-filters-members.php index ed3d37fe..af4b8877 100644 --- a/core/um-filters-members.php +++ b/core/um-filters-members.php @@ -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', diff --git a/core/um-short-functions.php b/core/um-short-functions.php index c0fc4b87..73816ec6 100644 --- a/core/um-short-functions.php +++ b/core/um-short-functions.php @@ -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; } diff --git a/index.php b/index.php index d414eddd..52a05eb2 100644 --- a/index.php +++ b/index.php @@ -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/ */ diff --git a/readme.txt b/readme.txt index 985d7fe7..cfb88f08 100644 --- a/readme.txt +++ b/readme.txt @@ -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) diff --git a/templates/login.php b/templates/login.php index 6e9006a8..ad0ec9b6 100644 --- a/templates/login.php +++ b/templates/login.php @@ -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); diff --git a/templates/profile.php b/templates/profile.php index fd6a1266..da8867d7 100644 --- a/templates/profile.php +++ b/templates/profile.php @@ -2,7 +2,7 @@