diff --git a/functions.php b/functions.php index 500940a2..b4eff0be 100644 --- a/functions.php +++ b/functions.php @@ -117,6 +117,16 @@ 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. */ @@ -128,9 +138,9 @@ require get_template_directory() . '/inc/custom-header.php'; require get_template_directory() . '/inc/template-tags.php'; /** - * Custom functions that act independently of the theme templates. + * Additional features to allow styling of the templates. */ -require get_template_directory() . '/inc/extras.php'; +require get_template_directory() . '/inc/template-functions.php'; /** * Customizer additions. diff --git a/inc/extras.php b/inc/template-functions.php similarity index 53% rename from inc/extras.php rename to inc/template-functions.php index 6ef7ad60..63e7e294 100644 --- a/inc/extras.php +++ b/inc/template-functions.php @@ -1,8 +1,6 @@ '; - } -} -add_action( 'wp_head', '_s_pingback_header' );