Fix some minor phpcs errors
This commit is contained in:
parent
5abb1baa8e
commit
327e0ddb59
|
@ -52,7 +52,7 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
|
||||
<?php if ( ! empty( $curauth->user_description ) ) : ?>
|
||||
<dt><?php esc_html_e( 'Profile', 'understrap' ); ?></dt>
|
||||
<dd><?php esc_html_e( $curauth->user_description ); ?></dd>
|
||||
<dd><?php esc_html_e( $curauth->user_description, 'understrap' ); ?></dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -8,13 +8,14 @@
|
|||
// Exit if accessed directly.
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
/**
|
||||
* Count number of widgets in a sidebar
|
||||
* Used to add classes to widget areas so widgets can be displayed one, two, three or four per row
|
||||
*
|
||||
* @deprecated 0.8.9
|
||||
*/
|
||||
if ( ! function_exists( 'understrap_slbd_count_widgets' ) ) {
|
||||
/**
|
||||
* Count number of widgets in a sidebar
|
||||
* Used to add classes to widget areas so widgets can be displayed one, two, three or four per row
|
||||
*
|
||||
* @param int $sidebar_id The ID of the sidebar.
|
||||
* @deprecated 0.8.9
|
||||
*/
|
||||
function understrap_slbd_count_widgets( $sidebar_id ) {
|
||||
// If loading from front page, consult $_wp_sidebars_widgets rather than options
|
||||
// to see if wp_convert_widget_settings() has made manipulations in memory.
|
||||
|
|
|
@ -83,7 +83,7 @@ if ( ! function_exists( 'understrap_change_logo_class' ) ) {
|
|||
* Display navigation to next/previous post when applicable.
|
||||
*/
|
||||
|
||||
if ( ! function_exists ( 'understrap_post_nav' ) ) {
|
||||
if ( ! function_exists( 'understrap_post_nav' ) ) {
|
||||
function understrap_post_nav() {
|
||||
// Don't print empty markup if there's nowhere to navigate.
|
||||
$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
|
||||
|
|
|
@ -15,7 +15,7 @@ if ( ! isset( $content_width ) ) {
|
|||
|
||||
add_action( 'after_setup_theme', 'understrap_setup' );
|
||||
|
||||
if ( ! function_exists ( 'understrap_setup' ) ) {
|
||||
if ( ! function_exists( 'understrap_setup' ) ) {
|
||||
/**
|
||||
* Sets up theme defaults and registers support for various WordPress features.
|
||||
*
|
||||
|
@ -90,7 +90,7 @@ if ( ! function_exists ( 'understrap_setup' ) ) {
|
|||
|
||||
// Set up the WordPress Theme logo feature.
|
||||
add_theme_support( 'custom-logo' );
|
||||
|
||||
|
||||
// Add support for responsive embedded content.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
* @package WooCommerce/Templates
|
||||
* @version 3.6.1
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ if ( $customer_orders ) : ?>
|
|||
<?php elseif ( 'order-actions' === $column_id ) : ?>
|
||||
<?php
|
||||
$actions = wc_get_account_orders_actions( $order );
|
||||
|
||||
|
||||
if ( ! empty( $actions ) ) {
|
||||
foreach ( $actions as $key => $action ) {
|
||||
echo '<a href="' . esc_url( $action['url'] ) . '" class="btn btn-outline-primary ' . sanitize_html_class( $key ) . '">' . esc_html( $action['name'] ) . '</a>';
|
||||
|
|
Reference in New Issue