forked from mirror/_s
Merge pull request #1118 from jrfnl/feature/1064-move-function-back
Move pingback function back to the `template-functions` file. Closes #1064
This commit is contained in:
commit
ab841b758b
|
@ -117,16 +117,6 @@ function _s_scripts() {
|
|||
}
|
||||
add_action( 'wp_enqueue_scripts', '_s_scripts' );
|
||||
|
||||
/**
|
||||
* Add a pingback url auto-discovery header for singularly identifiable articles.
|
||||
*/
|
||||
function _s_pingback_header() {
|
||||
if ( is_singular() && pings_open() ) {
|
||||
echo '<link rel="pingback" href="', esc_url( get_bloginfo( 'pingback_url' ) ), '">';
|
||||
}
|
||||
}
|
||||
add_action( 'wp_head', '_s_pingback_header' );
|
||||
|
||||
/**
|
||||
* Implement the Custom Header feature.
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Additional features to allow styling of the templates
|
||||
* Functions which enhance the theme by hooking into WordPress
|
||||
*
|
||||
* @package _s
|
||||
*/
|
||||
|
@ -25,3 +25,13 @@ function _s_body_classes( $classes ) {
|
|||
return $classes;
|
||||
}
|
||||
add_filter( 'body_class', '_s_body_classes' );
|
||||
|
||||
/**
|
||||
* Add a pingback url auto-discovery header for singularly identifiable articles.
|
||||
*/
|
||||
function _s_pingback_header() {
|
||||
if ( is_singular() && pings_open() ) {
|
||||
echo '<link rel="pingback" href="', esc_url( get_bloginfo( 'pingback_url' ) ), '">';
|
||||
}
|
||||
}
|
||||
add_action( 'wp_head', '_s_pingback_header' );
|
||||
|
|
Reference in New Issue