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 ) ) : ?>
|
<?php if ( ! empty( $curauth->user_description ) ) : ?>
|
||||||
<dt><?php esc_html_e( 'Profile', 'understrap' ); ?></dt>
|
<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; ?>
|
<?php endif; ?>
|
||||||
</dl>
|
</dl>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -8,13 +8,14 @@
|
||||||
// Exit if accessed directly.
|
// Exit if accessed directly.
|
||||||
defined( 'ABSPATH' ) || exit;
|
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' ) ) {
|
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 ) {
|
function understrap_slbd_count_widgets( $sidebar_id ) {
|
||||||
// If loading from front page, consult $_wp_sidebars_widgets rather than options
|
// If loading from front page, consult $_wp_sidebars_widgets rather than options
|
||||||
// to see if wp_convert_widget_settings() has made manipulations in memory.
|
// 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.
|
* Display navigation to next/previous post when applicable.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! function_exists ( 'understrap_post_nav' ) ) {
|
if ( ! function_exists( 'understrap_post_nav' ) ) {
|
||||||
function understrap_post_nav() {
|
function understrap_post_nav() {
|
||||||
// Don't print empty markup if there's nowhere to navigate.
|
// 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 );
|
$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' );
|
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.
|
* Sets up theme defaults and registers support for various WordPress features.
|
||||||
*
|
*
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
* @package WooCommerce/Templates
|
* @package WooCommerce/Templates
|
||||||
* @version 3.6.1
|
* @version 3.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue