Plugin Directory

Changeset 1915828


Ignore:
Timestamp:
07/27/2018 10:42:14 AM (8 years ago)
Author:
plusplugins
Message:

Release 2.1.1, see readme.txt for the changelog.

Location:
profile-tabs-for-ultimate-member
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • profile-tabs-for-ultimate-member/tags/2.1.1/core.php

    r1913082 r1915828  
    111111        $posts        = get_posts( $args );
    112112        $user_role    = UM()->roles()->get_all_user_roles( get_current_user_id() );
    113         $profile_role = UM()->roles()->get_all_user_roles( um_profile_id() );
     113        $profile_role = UM()->roles()->get_all_user_roles( um_get_requested_user() );
     114
     115        if ( empty( $user_role ) ) {
     116            $user_role = array();
     117        }
     118
     119        if ( empty( $profile_role ) ) {
     120            $profile_role = array();
     121        }
    114122
    115123        foreach ( $posts as $post ) {
  • profile-tabs-for-ultimate-member/tags/2.1.1/pp-tabs.php

    r1913082 r1915828  
    55 * Description: Add custom profile tabs to your Ultimate Member site with content area and privacy settings.
    66 * Author: PlusPlugins
    7  * Version: 2.1.0
     7 * Version: 2.1.1
    88 * Author URI: https://www.plusplugins.com
    99 * Text Domain: profile-tabs-for-ultimate-member
  • profile-tabs-for-ultimate-member/tags/2.1.1/readme.txt

    r1913082 r1915828  
    66Tested up to: 4.9.7
    77Requires PHP: 5.6
    8 Stable tag: 2.1.0
     8Stable tag: 2.1.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8383== Changelog ==
    8484
     85= 2.1.1 =
     86* Fix: Warning: array_intersect() Argument #1 is not an array while logged out
     87
    8588= 2.1.0 =
    8689* Fix: User Role issue with tabs
  • profile-tabs-for-ultimate-member/trunk/core.php

    r1913082 r1915828  
    111111        $posts        = get_posts( $args );
    112112        $user_role    = UM()->roles()->get_all_user_roles( get_current_user_id() );
    113         $profile_role = UM()->roles()->get_all_user_roles( um_profile_id() );
     113        $profile_role = UM()->roles()->get_all_user_roles( um_get_requested_user() );
     114
     115        if ( empty( $user_role ) ) {
     116            $user_role = array();
     117        }
     118
     119        if ( empty( $profile_role ) ) {
     120            $profile_role = array();
     121        }
    114122
    115123        foreach ( $posts as $post ) {
  • profile-tabs-for-ultimate-member/trunk/pp-tabs.php

    r1913082 r1915828  
    55 * Description: Add custom profile tabs to your Ultimate Member site with content area and privacy settings.
    66 * Author: PlusPlugins
    7  * Version: 2.1.0
     7 * Version: 2.1.1
    88 * Author URI: https://www.plusplugins.com
    99 * Text Domain: profile-tabs-for-ultimate-member
  • profile-tabs-for-ultimate-member/trunk/readme.txt

    r1913082 r1915828  
    66Tested up to: 4.9.7
    77Requires PHP: 5.6
    8 Stable tag: 2.1.0
     8Stable tag: 2.1.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8383== Changelog ==
    8484
     85= 2.1.1 =
     86* Fix: Warning: array_intersect() Argument #1 is not an array while logged out
     87
    8588= 2.1.0 =
    8689* Fix: User Role issue with tabs
Note: See TracChangeset for help on using the changeset viewer.