Addressing PHPCS errors.

- Deleted precision indentation on lines 72 and 80.
- Deleted unnecessary `echo` from before `esc_html_e` cals.
This commit is contained in:
And Finally 2021-08-09 17:02:58 +01:00
parent a44d9c9827
commit 0ceaf93b35
1 changed files with 5 additions and 5 deletions

View File

@ -98,13 +98,13 @@ if ( ! defined( 'ABSPATH' ) ) {
</div>
<div class="product-footer">
<?php if ( '&#36;0.00' === $addon->price ) : ?>
<span class="price"><?php echo esc_html_e( 'Free', 'woocommerce' ); ?></span>
<span class="price"><?php esc_html_e( 'Free', 'woocommerce' ); ?></span>
<?php else : ?>
<span class="price"><?php echo wp_kses_post( $addon->price ); ?></span>
<span class="price_suffix"><?php echo esc_html_e( 'per year', 'woocommerce' ); ?></span>
<span class="price_suffix"><?php esc_html_e( 'per year', 'woocommerce' ); ?></span>
<?php endif; ?>
<a class="button" href="<?php echo esc_attr( WC_Admin_Addons::add_in_app_purchase_url_params( $addon->link ) ); ?>">
<?php echo esc_html_e( 'View details', 'woocommerce' ); ?>
<?php esc_html_e( 'View details', 'woocommerce' ); ?>
</a>
</div>
</li>