From 7b8db5678f21186da65945f7697a04745478cd6b Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 16 Jun 2017 01:17:27 +0200 Subject: [PATCH] Move pingback function back to the `template-functions` file. --- functions.php | 10 ---------- inc/template-functions.php | 12 +++++++++++- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/functions.php b/functions.php index b4eff0be..c68a5f52 100644 --- a/functions.php +++ b/functions.php @@ -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 ''; - } -} -add_action( 'wp_head', '_s_pingback_header' ); - /** * Implement the Custom Header feature. */ diff --git a/inc/template-functions.php b/inc/template-functions.php index 63e7e294..ae8e23e9 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -1,6 +1,6 @@ '; + } +} +add_action( 'wp_head', '_s_pingback_header' );