Updated conditional statements to Yoda style
Updated both user registration conditional statements to [Yoda](https://en.wikipedia.org/wiki/Yoda_conditions) style.
This commit is contained in:
parent
8f145c70d7
commit
ac298674c7
|
@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
do_action( 'woocommerce_before_customer_login_form' ); ?>
|
||||
|
||||
<?php if ( get_option( 'woocommerce_enable_myaccount_registration' ) === 'yes' ) : ?>
|
||||
<?php if ( 'yes' === get_option( 'woocommerce_enable_myaccount_registration' ) ) : ?>
|
||||
|
||||
<div class="u-columns col2-set" id="customer_login">
|
||||
|
||||
|
@ -61,7 +61,7 @@ do_action( 'woocommerce_before_customer_login_form' ); ?>
|
|||
|
||||
</form>
|
||||
|
||||
<?php if ( get_option( 'woocommerce_enable_myaccount_registration' ) === 'yes' ) : ?>
|
||||
<?php if ( 'yes' === get_option( 'woocommerce_enable_myaccount_registration' ) ) : ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue