Fix some minor phpcs errors

This commit is contained in:
Gary Kealy 2019-07-04 15:53:03 +01:00
parent 5abb1baa8e
commit 327e0ddb59
6 changed files with 13 additions and 11 deletions

View File

@ -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; ?>

View File

@ -8,13 +8,14 @@
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
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
*/
if ( ! function_exists( 'understrap_slbd_count_widgets' ) ) {
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.

View File

@ -17,6 +17,7 @@
* @package WooCommerce/Templates
* @version 3.6.1
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}