From 8ecfeb4436db2a5cc2e7c591b1f59dcdab59eaf6 Mon Sep 17 00:00:00 2001
From: IanDelMar <42134098+IanDelMar@users.noreply.github.com>
Date: Mon, 19 Nov 2018 00:38:50 +0100
Subject: [PATCH] Fix indentation
---
inc/hooks.php | 66 +++++++++++++++++++++++++++------------------------
1 file changed, 35 insertions(+), 31 deletions(-)
diff --git a/inc/hooks.php b/inc/hooks.php
index 2de64018..e6752a50 100644
--- a/inc/hooks.php
+++ b/inc/hooks.php
@@ -10,40 +10,44 @@ if ( ! defined( 'ABSPATH' ) ) {
}
if ( ! function_exists( 'understrap_site_info' ) ) {
- /**
- * Add site info hook to WP hook library.
- */
- function understrap_site_info() {
- do_action( 'understrap_site_info' );
- }
+ /**
+ * Add site info hook to WP hook library.
+ */
+ function understrap_site_info() {
+ do_action( 'understrap_site_info' );
+ }
}
if ( ! function_exists( 'understrap_add_site_info' ) ) {
- add_action( 'understrap_site_info', 'understrap_add_site_info' );
+ add_action( 'understrap_site_info', 'understrap_add_site_info' );
- /**
- * Add site info content.
- */
- function understrap_add_site_info() {
- $the_theme = wp_get_theme();
-
- $site_info = sprintf(
- '%2$s | %3$s(%4$s)',
- esc_url( __( 'http://wordpress.org/', 'understrap' ) ),
- sprintf(
- /* translators:*/
- esc_html__( 'Proudly powered by %s', 'understrap' ), 'WordPress'
- ),
- sprintf( // WPCS: XSS ok.
- /* translators:*/
- esc_html__( 'Theme: %1$s by %2$s.', 'understrap' ), $the_theme->get( 'Name' ), 'understrap.com'
- ),
- sprintf( // WPCS: XSS ok.
- /* translators:*/
- esc_html__( 'Version: %1$s', 'understrap' ), $the_theme->get( 'Version' )
- )
- );
+ /**
+ * Add site info content.
+ */
+ function understrap_add_site_info() {
+ $the_theme = wp_get_theme();
- echo apply_filters( 'understrap_site_info_content', $site_info ); // WPCS: XSS ok.
- }
+ $site_info = sprintf(
+ '%2$s | %3$s(%4$s)',
+ esc_url( __( 'http://wordpress.org/', 'understrap' ) ),
+ sprintf(
+ /* translators:*/
+ esc_html__( 'Proudly powered by %s', 'understrap' ),
+ 'WordPress'
+ ),
+ sprintf( // WPCS: XSS ok.
+ /* translators:*/
+ esc_html__( 'Theme: %1$s by %2$s.', 'understrap' ),
+ $the_theme->get( 'Name' ),
+ 'understrap.com'
+ ),
+ sprintf( // WPCS: XSS ok.
+ /* translators:*/
+ esc_html__( 'Version: %1$s', 'understrap' ),
+ $the_theme->get( 'Version' )
+ )
+ );
+
+ echo apply_filters( 'understrap_site_info_content', $site_info ); // WPCS: XSS ok.
+ }
}