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' );
diff --git a/inc/hooks.php b/inc/hooks.php new file mode 100644 index 0000000..5f21182 --- /dev/null +++ b/inc/hooks.php @@ -0,0 +1,45 @@ +%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. + } +}