Move pingback function back to the template-functions
file.
This commit is contained in:
parent
bce3197a42
commit
7b8db5678f
2 changed files with 11 additions and 11 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue