Browse Source

去掉ping_back

liuyuqi-dellpc 5 years ago
parent
commit
0b6688244d
1 changed files with 0 additions and 15 deletions
  1. 0 15
      include/general.php

+ 0 - 15
include/general.php

@@ -156,21 +156,6 @@ if ( ! function_exists( 'pen_archive_title_override' ) ) {
 	add_filter( 'get_the_archive_title', 'pen_archive_title_override' );
 }
 
-if ( ! function_exists( 'pen_pingback' ) ) {
-	/**
-	 * Add a pingback URL auto-discovery header for singularly identifiable articles.
-	 *
-	 * @since Pen 1.0.0
-	 * @return void
-	 */
-	function pen_pingback() {
-		if ( is_singular() && pings_open() ) {
-			echo '<link rel="pingback" href="' . esc_url( get_bloginfo( 'pingback_url' ) ) . '">';
-		}
-	}
-	add_action( 'wp_head', 'pen_pingback' );
-}
-
 if ( ! function_exists( 'pen_content_width' ) ) {
 	/**
 	 * Set the content width in pixels, based on the theme's design and stylesheet.