- fixed show secondary button attribute;

This commit is contained in:
Nikita Sinelnikov
2021-07-27 16:50:19 +03:00
parent 2edddc18fe
commit bdbb60e3c4
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -418,7 +418,7 @@ function um_add_submit_button_to_login( $args ) {
<div class="um-clear"></div>
<?php }
if ( isset( $args['secondary_btn'] ) && $args['secondary_btn'] != 0 ) { ?>
if ( ! empty( $args['secondary_btn'] ) ) { ?>
<div class="um-left um-half">
<input type="submit" value="<?php esc_attr_e( wp_unslash( $primary_btn_word ), 'ultimate-member' ); ?>" class="um-button" id="um-submit-btn" />
+1 -1
View File
@@ -1529,7 +1529,7 @@ function um_add_submit_button_to_profile( $args ) {
<div class="um-col-alt">
<?php if ( isset( $args['secondary_btn'] ) && $args['secondary_btn'] != 0 ) { ?>
<?php if ( ! empty( $args['secondary_btn'] ) ) { ?>
<div class="um-left um-half">
<input type="submit" value="<?php esc_attr_e( wp_unslash( $args['primary_btn_word'] ), 'ultimate-member' ); ?>" class="um-button" />
+2 -2
View File
@@ -591,7 +591,7 @@ function um_add_submit_button_to_register( $args ) {
<div class="um-col-alt">
<?php if ( isset( $args['secondary_btn'] ) && $args['secondary_btn'] != 0 ) { ?>
<?php if ( ! empty( $args['secondary_btn'] ) ) { ?>
<div class="um-left um-half">
<input type="submit" value="<?php esc_attr_e( wp_unslash( $primary_btn_word ), 'ultimate-member' ) ?>" class="um-button" id="um-submit-btn" />
@@ -741,4 +741,4 @@ function um_form_register_redirect() {
exit();
}
}
add_action( 'login_form_register', 'um_form_register_redirect', 10 );
add_action( 'login_form_register', 'um_form_register_redirect', 10 );