Merge pull request #21958 from mahdiyazdani/patch-2
Updated conditional statements to Yoda style
This commit is contained in:
commit
a07cadf510
|
@ -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