Permalink
Browse files

Add generator meta tag.

  • Loading branch information...
1 parent 1e63899 commit ed2a206abd6c6bbfe51f0edb32a35c0fa464591f Michael Sisk committed Feb 19, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 webcomic.php
View
@@ -558,6 +558,8 @@ public function wp_head() {
$output[ 'og:image:width' ] = $attributes[ 1 ];
$output[ 'og:image:height' ] = $attributes[ 2 ];
}
+
+ $output[ 'generator' ] = sprintf( 'Webcomic %s', self::$version );
}
$output = apply_filters( 'webcomic_opengraph', $output, $object, self::$collection );
@@ -574,7 +576,7 @@ public function wp_head() {
}
}
} else {
- echo sprintf( '<meta %s="%s" content="%s">', 0 === strpos( $k, 'twitter' ) ? 'name' : 'property', $k, $v ), "\n";
+ echo sprintf( '<meta %s="%s" content="%s">', ( 0 === strpos( $k, 'twitter' ) or 'generator' === $k ) ? 'name' : 'property', $k, $v ), "\n";
}
}
}

0 comments on commit ed2a206

Please sign in to comment.