mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix lock text login_referrer constant
This commit is contained in:
+10
-10
@@ -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 <a href="{login_referrer}">login</a> 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
|
||||
***/
|
||||
|
||||
Reference in New Issue
Block a user