Merge pull request #921 from schnoggo/master
Make extras functions pluggable - thx @schnoggo
This commit is contained in:
commit
98b2107d33
|
@ -111,6 +111,7 @@ if ( ! function_exists ( 'understrap_post_nav' ) ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! function_exists( 'understrap_pingback' ) ) {
|
||||||
/**
|
/**
|
||||||
* Add a pingback url auto-discovery header for single posts of any post type.
|
* Add a pingback url auto-discovery header for single posts of any post type.
|
||||||
*/
|
*/
|
||||||
|
@ -119,8 +120,10 @@ function understrap_pingback() {
|
||||||
echo '<link rel="pingback" href="' . esc_url( get_bloginfo( 'pingback_url' ) ) . '">' . "\n";
|
echo '<link rel="pingback" href="' . esc_url( get_bloginfo( 'pingback_url' ) ) . '">' . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
add_action( 'wp_head', 'understrap_pingback' );
|
add_action( 'wp_head', 'understrap_pingback' );
|
||||||
|
|
||||||
|
if ( ! function_exists( 'understrap_mobile_web_app_meta' ) ) {
|
||||||
/**
|
/**
|
||||||
* Add mobile-web-app meta.
|
* Add mobile-web-app meta.
|
||||||
*/
|
*/
|
||||||
|
@ -129,4 +132,5 @@ function understrap_mobile_web_app_meta() {
|
||||||
echo '<meta name="apple-mobile-web-app-capable" content="yes">' . "\n";
|
echo '<meta name="apple-mobile-web-app-capable" content="yes">' . "\n";
|
||||||
echo '<meta name="apple-mobile-web-app-title" content="' . esc_attr( get_bloginfo( 'name' ) ) . ' - ' . esc_attr( get_bloginfo( 'description' ) ) . '">' . "\n";
|
echo '<meta name="apple-mobile-web-app-title" content="' . esc_attr( get_bloginfo( 'name' ) ) . ' - ' . esc_attr( get_bloginfo( 'description' ) ) . '">' . "\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
add_action( 'wp_head', 'understrap_mobile_web_app_meta' );
|
add_action( 'wp_head', 'understrap_mobile_web_app_meta' );
|
||||||
|
|
Reference in New Issue