Skip to content

Commit

Permalink
Only generate pingback url header tag when relevant.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Nov 11, 2015
1 parent 13f5705 commit bd9426d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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>
Expand Down

0 comments on commit bd9426d

Please sign in to comment.