From 327e0ddb59295ab48e70a153bbbd581d2764de36 Mon Sep 17 00:00:00 2001 From: Gary Kealy Date: Thu, 4 Jul 2019 15:53:03 +0100 Subject: [PATCH] Fix some minor phpcs errors --- author.php | 2 +- inc/deprecated.php | 13 +++++++------ inc/extras.php | 2 +- inc/setup.php | 4 ++-- woocommerce/cart/mini-cart.php | 1 + woocommerce/myaccount/my-orders.php | 2 +- 6 files changed, 13 insertions(+), 11 deletions(-) diff --git a/author.php b/author.php index 032f3cd..a51dd26 100644 --- a/author.php +++ b/author.php @@ -52,7 +52,7 @@ $container = get_theme_mod( 'understrap_container_type' ); user_description ) ) : ?>
-
user_description ); ?>
+
user_description, 'understrap' ); ?>
diff --git a/inc/deprecated.php b/inc/deprecated.php index ebe3eb3..e877d76 100644 --- a/inc/deprecated.php +++ b/inc/deprecated.php @@ -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. diff --git a/inc/extras.php b/inc/extras.php index 9cb5cb5..e80198f 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -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 ); diff --git a/inc/setup.php b/inc/setup.php index 0a22660..9853c1a 100644 --- a/inc/setup.php +++ b/inc/setup.php @@ -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' ); diff --git a/woocommerce/cart/mini-cart.php b/woocommerce/cart/mini-cart.php index 9c973b9..4ba9451 100644 --- a/woocommerce/cart/mini-cart.php +++ b/woocommerce/cart/mini-cart.php @@ -17,6 +17,7 @@ * @package WooCommerce/Templates * @version 3.6.1 */ + if ( ! defined( 'ABSPATH' ) ) { exit; } diff --git a/woocommerce/myaccount/my-orders.php b/woocommerce/myaccount/my-orders.php index 271b4a9..b9660ec 100644 --- a/woocommerce/myaccount/my-orders.php +++ b/woocommerce/myaccount/my-orders.php @@ -70,7 +70,7 @@ if ( $customer_orders ) : ?> $action ) { echo '' . esc_html( $action['name'] ) . '';