Skip to content

Commit

Permalink
Don't attempt to generate OpenGraph tags on 404.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Sisk committed Jan 29, 2013
1 parent 1dbd5d1 commit de8062e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webcomic.php
Expand Up @@ -475,7 +475,7 @@ public function wp_head() {
$output = array();
$object = $wp_query->get_queried_object();

if ( self::$collection ) {
if ( self::$collection and !is_404() ) {
$output[ 'og:type' ] = empty( $object->post_type ) ? 'website' : 'article';
$output[ 'og:site_name' ] = get_bloginfo( 'name' );

Expand Down

0 comments on commit de8062e

Please sign in to comment.