Ultimate Member – User Profile & Membership Plugin - Version 1.0.87

Version Description

Download this release

Release Info

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

Code changes from version 1.0.86 to 1.0.87

Files changed (4) hide show
  1. core/um-short-functions.php +13 -1
  2. index.php +1 -1
  3. readme.txt +6 -2
  4. templates/profile.php +2 -2
core/um-short-functions.php CHANGED
@@ -499,6 +499,18 @@ function um_reset_user() {
499
  return $url;
500
  }
501
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  /***
503
  *** @can view field
504
  ***/
@@ -530,7 +542,7 @@ function um_reset_user() {
530
  function um_can_view_profile( $user_id ){
531
  global $ultimatemember;
532
 
533
- if ( !current_user_can('manage_options') && !$ultimatemember->user->is_approved( $user_id ) ) {
534
  return false;
535
  }
536
 
499
  return $url;
500
  }
501
 
502
+ /***
503
+ *** @boolean for profile edit page
504
+ ***/
505
+ function um_is_on_edit_profile() {
506
+ if ( isset( $_REQUEST['profiletab'] ) && isset( $_REQUEST['um_action'] ) ) {
507
+ if ( $_REQUEST['profiletab'] == 'main' && $_REQUEST['um_action'] == 'edit' ) {
508
+ return true;
509
+ }
510
+ }
511
+ return false;
512
+ }
513
+
514
  /***
515
  *** @can view field
516
  ***/
542
  function um_can_view_profile( $user_id ){
543
  global $ultimatemember;
544
 
545
+ if ( !um_current_user_can('edit', $user_id ) && !$ultimatemember->user->is_approved( $user_id ) ) {
546
  return false;
547
  }
548
 
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.0.86
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.0.87
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.1.1
9
 
10
- Stable Tag: 1.0.86
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
@@ -17,7 +17,7 @@ The easiest way to create powerful online communities and beautiful user profile
17
 
18
  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.
19
 
20
- **Live Demo: Check out all of Ultimate Member's features on our [live demo](http://ultimatememberdemo.com/)!**
21
 
22
  **Get support by posting in our [community forum](https://ultimatemember.com/forums/).**
23
 
@@ -203,6 +203,10 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
203
 
204
  == Changelog ==
205
 
 
 
 
 
206
  = 1.0.86: March 16, 2015 =
207
 
208
  * Tweak: UM admins can see unapproved users on front-end members directory
7
  Requires at least: 4.1
8
  Tested up to: 4.1.1
9
 
10
+ Stable Tag: 1.0.87
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
17
 
18
  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.
19
 
20
+ **Check out all of the plugin features on our [Live Demo](https://ultimatemember.com/).**
21
 
22
  **Get support by posting in our [community forum](https://ultimatemember.com/forums/).**
23
 
203
 
204
  == Changelog ==
205
 
206
+ = 1.0.87: March 17, 2015 =
207
+
208
+ * 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
209
+
210
  = 1.0.86: March 16, 2015 =
211
 
212
  * Tweak: UM admins can see unapproved users on front-end members directory
templates/profile.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  <div class="um-form">
4
 
5
- <form method="post" action="">
6
 
7
  <?php do_action('um_profile_header_cover_area', $args ); ?>
8
 
@@ -25,7 +25,7 @@
25
 
26
  ?>
27
 
28
- </form>
29
 
30
  </div>
31
 
2
 
3
  <div class="um-form">
4
 
5
+ <?php if ( um_is_on_edit_profile() ) { ?><form method="post" action=""><?php } ?>
6
 
7
  <?php do_action('um_profile_header_cover_area', $args ); ?>
8
 
25
 
26
  ?>
27
 
28
+ <?php if ( um_is_on_edit_profile() ) { ?></form><?php } ?>
29
 
30
  </div>
31