diff --git a/header.php b/header.php index d309fe9..0c5a7d4 100644 --- a/header.php +++ b/header.php @@ -15,7 +15,6 @@ - diff --git a/inc/extras.php b/inc/extras.php index d3bf8fb..8475ff8 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -27,3 +27,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 ''; + } +} +add_action( 'wp_head', '_s_pingback_header' );