This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Don't include pingback unnecessarily

  • Loading branch information...
staylor committed Sep 22, 2015
1 parent d10863d commit 68d5212d74130262b2b45fd788ea040f536c8ebe
Showing with 2 additions and 0 deletions.
  1. +2 −0 header.php
View
@@ -14,7 +14,9 @@
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
+ <?php if ( is_singular() && pings_open( get_queried_object() ) ): ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
+ <?php endif; ?>
<?php wp_head(); ?>
</head>

0 comments on commit 68d5212

Please sign in to comment.