mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
- remove looping in case if set 'display_name' as custom fields for display name setting;
This commit is contained in:
@@ -363,12 +363,13 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
|
||||
|
||||
$args = wp_parse_args( $args, $defaults );
|
||||
|
||||
$args['lock_text'] = $this->convert_locker_tags( $args['lock_text'] );
|
||||
|
||||
|
||||
if ( ! is_user_logged_in() ) {
|
||||
if ( $args['show_lock'] == 'no' ) {
|
||||
echo '';
|
||||
} else {
|
||||
$args['lock_text'] = $this->convert_locker_tags( $args['lock_text'] );
|
||||
$this->set_args = $args;
|
||||
$this->load_template( 'login-to-view' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user