From 05daa67c38295a5b21b383103d166f2e26277c62 Mon Sep 17 00:00:00 2001 From: jonfalcon Date: Sun, 10 Jan 2016 07:23:29 -0800 Subject: [PATCH] Fix lock text login_referrer constant --- core/um-shortcodes.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core/um-shortcodes.php b/core/um-shortcodes.php index b5ca4195..1984449c 100644 --- a/core/um-shortcodes.php +++ b/core/um-shortcodes.php @@ -9,10 +9,10 @@ class UM_Shortcodes { $this->loop = ''; add_shortcode('ultimatemember', array(&$this, 'ultimatemember'), 1); - + add_shortcode('um_loggedin', array(&$this, 'um_loggedin') ); add_shortcode('um_loggedout', array(&$this, 'um_loggedout') ); - + add_filter( 'body_class', array(&$this, 'body_class'), 0 ); $this->emoji[':)'] = 'https://s.w.org/images/core/emoji/72x72/1f604.png'; @@ -189,10 +189,10 @@ class UM_Shortcodes { 'lock_text' => __('This content has been restricted to logged in users only. Please login to view this content.','ultimatemember' ), 'show_lock' => 'yes' ); - + $args = wp_parse_args( $args, $defaults ); - - //$args['lock_text'] = $this->convert_locker_tags( $args['lock_text'] ); + + $args['lock_text'] = $this->convert_locker_tags( $args['lock_text'] ); if ( !is_user_logged_in() ) { if ( $args['show_lock'] == 'no' ) { @@ -204,12 +204,12 @@ class UM_Shortcodes { } else { echo do_shortcode( $this->convert_locker_tags( wpautop( $content ) ) ); } - + $output = ob_get_contents(); ob_end_clean(); return $output; } - + /*** *** @Logged-out only content ***/ @@ -223,12 +223,12 @@ class UM_Shortcodes { } else { echo do_shortcode( wpautop( $content ) ); } - + $output = ob_get_contents(); ob_end_clean(); return $output; } - + /*** *** @Shortcode ***/ @@ -423,7 +423,7 @@ class UM_Shortcodes { $shortcode = '[ultimatemember form_id='.$post_id.']'; return $shortcode; } - + /*** *** @convert access lock tags ***/