From cee0bd5ee3d78368838fa841967db3606ffde8a1 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Mon, 6 Aug 2018 22:19:50 +0200 Subject: [PATCH 1/3] Create hooks.php --- inc/hooks.php | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 inc/hooks.php diff --git a/inc/hooks.php b/inc/hooks.php new file mode 100644 index 0000000..8706cf7 --- /dev/null +++ b/inc/hooks.php @@ -0,0 +1,47 @@ +%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. + } +} From a2eaaed12ceeed832689c3b98dbee4650dba8ecd Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Mon, 6 Aug 2018 22:31:39 +0200 Subject: [PATCH 2/3] Use site info hook see inc/hooks.php --- footer.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/footer.php b/footer.php index 7a641dc..bcf0f64 100644 --- a/footer.php +++ b/footer.php @@ -7,7 +7,6 @@ * @package understrap */ -$the_theme = wp_get_theme(); $container = get_theme_mod( 'understrap_container_type' ); ?> @@ -25,18 +24,8 @@ $container = get_theme_mod( 'understrap_container_type' );
From eda386549d27814cd22546a7d7b1fe8b6d63e05d Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Mon, 6 Aug 2018 22:34:35 +0200 Subject: [PATCH 3/3] Update hooks.php --- inc/hooks.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/inc/hooks.php b/inc/hooks.php index 8706cf7..5f21182 100644 --- a/inc/hooks.php +++ b/inc/hooks.php @@ -5,8 +5,6 @@ * @package understrap */ - - if ( ! function_exists( 'understrap_add_site_info' ) ) { /** * Add site info hook to WP hook library.