From 6fcf1e97200608a8fe13a9df1450eb1c96b1de90 Mon Sep 17 00:00:00 2001 From: Lon Koenig Date: Tue, 19 Feb 2019 10:22:29 -0600 Subject: [PATCH] Make understrap_mobile_web_app_meta() and understrap_pingback() pluggable. --- inc/extras.php | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/inc/extras.php b/inc/extras.php index 163b0c3..88d87d5 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -111,22 +111,26 @@ if ( ! function_exists ( 'understrap_post_nav' ) ) { } } -/** - * Add a pingback url auto-discovery header for single posts of any post type. - */ -function understrap_pingback() { - if ( is_singular() && pings_open() ) { - echo '' . "\n"; +if ( ! function_exists( 'understrap_pingback' ) ) { + /** + * Add a pingback url auto-discovery header for single posts of any post type. + */ + function understrap_pingback() { + if ( is_singular() && pings_open() ) { + echo '' . "\n"; + } } } add_action( 'wp_head', 'understrap_pingback' ); -/** - * Add mobile-web-app meta. - */ -function understrap_mobile_web_app_meta() { - echo '' . "\n"; - echo '' . "\n"; - echo '' . "\n"; +if ( ! function_exists( 'understrap_mobile_web_app_meta' ) ) { + /** + * Add mobile-web-app meta. + */ + function understrap_mobile_web_app_meta() { + echo '' . "\n"; + echo '' . "\n"; + echo '' . "\n"; + } } add_action( 'wp_head', 'understrap_mobile_web_app_meta' );