Skip to content
Browse files

Use WP 3.4's wp_get_theme() function to output the meta template value.

  • Loading branch information...
1 parent ef84d26 commit 4425b5a884fe498aa960cc603ad8095536e5cef6 @justintadlock committed Jun 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 functions/utility.php
View
4 functions/utility.php
@@ -116,8 +116,8 @@ function get_atomic_template( $template ) {
* @return void
*/
function hybrid_meta_template() {
- $data = hybrid_get_theme_data();
- $template = '<meta name="template" content="' . esc_attr( "{$data['Title']} {$data['Version']}" ) . '" />' . "\n";
+ $theme = wp_get_theme( get_template(), get_theme_root( get_template_directory() ) );
+ $template = '<meta name="template" content="' . esc_attr( $theme->get( 'Name' ) . ' ' . $theme->get( 'Version' ) ) . '" />' . "\n";
echo apply_atomic( 'meta_template', $template );
}

0 comments on commit 4425b5a

Please sign in to comment.
Something went wrong with that request. Please try again.