Plugin Directory

Changeset 1896830


Ignore:
Timestamp:
06/22/2018 03:58:35 AM (8 years ago)
Author:
plusplugins
Message:

Release 2.0.2, see readme.txt for the changelog.

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

Legend:

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

    r1858191 r1896830  
    4242    function show_profile_tab_content() {
    4343
    44         global $ultimatemember;
    45 
    4644        $tab = UM()->profile()->active_tab();
    4745
     
    6563        add_action( "um_profile_content_{$tab}_default", function () use ( $main_tab ) {
    6664
    67             $tab_content = apply_filters( 'the_content', $main_tab[0]->post_content );
     65            $tab_content = $main_tab[0]->post_content;
     66
     67            if ( ( ! defined( 'PP_TABS_PRO_VERSION' ) ) && has_shortcode( $tab_content, 'ultimatemember' ) ) {
     68                // The content has a [ultimatemember] short code;
     69                // strip all shortcodes from the content to avoid recursion & timeout
     70                $tab_content = strip_shortcodes( $tab_content );
     71            }
     72
     73            $tab_content = apply_filters( 'the_content', $tab_content );
    6874            echo $tab_content;
    6975
     
    9298
    9399    function add_profile_tabs( $tabs ) {
    94 
    95         global $ultimatemember;
    96100
    97101        $args = array(
  • profile-tabs-for-ultimate-member/tags/2.0.2/metabox.php

    r1858191 r1896830  
    1515
    1616    function cmb2_pp_tabs_metabox() {
    17 
    18         global $ultimatemember;
    1917
    2018        $prefix = '_pp_';
  • profile-tabs-for-ultimate-member/tags/2.0.2/pp-tabs.php

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

    r1858363 r1896830  
    44Tags: ultimate member, ultimatemember, user profiles, tabs, profile tabs, custom tabs, user tabs, member tabs, reorder tabs, sort tabs, membership tabs, extra tabs
    55Requires at least: 4.1, Ultimate Member: 2.0.4
    6 Tested up to: 4.9.5, Ultimate Member: 2.0.8
     6Tested up to: 4.9.6, Ultimate Member: 2.0.17
    77Requires PHP: 5.6
    8 Stable tag: 2.0.1
     8Stable tag: 2.0.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8383== Changelog ==
    8484
     85= 2.0.2 =
     86* Fix: Timeout issue when UM Profile Form shortcode is used
     87
    8588= 2.0.0 =
    8689* Update: Confirm UM 2.0 compatibility
  • profile-tabs-for-ultimate-member/tags/2.0.2/shortcode.php

    r1858191 r1896830  
    77
    88    function output_field( $atts ) {
    9         global $ultimatemember;
    109
    1110        $a = shortcode_atts( array(
  • profile-tabs-for-ultimate-member/trunk/core.php

    r1858191 r1896830  
    4242    function show_profile_tab_content() {
    4343
    44         global $ultimatemember;
    45 
    4644        $tab = UM()->profile()->active_tab();
    4745
     
    6563        add_action( "um_profile_content_{$tab}_default", function () use ( $main_tab ) {
    6664
    67             $tab_content = apply_filters( 'the_content', $main_tab[0]->post_content );
     65            $tab_content = $main_tab[0]->post_content;
     66
     67            if ( ( ! defined( 'PP_TABS_PRO_VERSION' ) ) && has_shortcode( $tab_content, 'ultimatemember' ) ) {
     68                // The content has a [ultimatemember] short code;
     69                // strip all shortcodes from the content to avoid recursion & timeout
     70                $tab_content = strip_shortcodes( $tab_content );
     71            }
     72
     73            $tab_content = apply_filters( 'the_content', $tab_content );
    6874            echo $tab_content;
    6975
     
    9298
    9399    function add_profile_tabs( $tabs ) {
    94 
    95         global $ultimatemember;
    96100
    97101        $args = array(
  • profile-tabs-for-ultimate-member/trunk/metabox.php

    r1858191 r1896830  
    1515
    1616    function cmb2_pp_tabs_metabox() {
    17 
    18         global $ultimatemember;
    1917
    2018        $prefix = '_pp_';
  • profile-tabs-for-ultimate-member/trunk/pp-tabs.php

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

    r1858363 r1896830  
    44Tags: ultimate member, ultimatemember, user profiles, tabs, profile tabs, custom tabs, user tabs, member tabs, reorder tabs, sort tabs, membership tabs, extra tabs
    55Requires at least: 4.1, Ultimate Member: 2.0.4
    6 Tested up to: 4.9.5, Ultimate Member: 2.0.8
     6Tested up to: 4.9.6, Ultimate Member: 2.0.17
    77Requires PHP: 5.6
    8 Stable tag: 2.0.1
     8Stable tag: 2.0.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8383== Changelog ==
    8484
     85= 2.0.2 =
     86* Fix: Timeout issue when UM Profile Form shortcode is used
     87
    8588= 2.0.0 =
    8689* Update: Confirm UM 2.0 compatibility
  • profile-tabs-for-ultimate-member/trunk/shortcode.php

    r1858191 r1896830  
    77
    88    function output_field( $atts ) {
    9         global $ultimatemember;
    109
    1110        $a = shortcode_atts( array(
Note: See TracChangeset for help on using the changeset viewer.