Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

content attribute not value attribute

  • Loading branch information...
commit d51ac33dc0020fa917aadc1ea318121374d78aa9 1 parent f5fecba
Niall Kennedy authored July 02, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  class-twitter-card-wp.php
2  class-twitter-card-wp.php
@@ -30,7 +30,7 @@ public static function is_valid_url( $url, $allowed_schemes = null ) {
30 30
 	public static function build_meta_element( $name, $value, $xml = false ) {
31 31
 		if ( ! ( is_string( $name ) && $name && ( is_string( $value ) || ( is_int( $value ) && $value > 0 ) ) ) )
32 32
 			return '';
33  
-		return '<meta name="' . esc_attr( self::PREFIX . ':' . $name ) . '" value="' . esc_attr( $value ) . '"' . ( $xml === true ? ' />' : '>' ) . "\n";
  33
+		return '<meta name="' . esc_attr( self::PREFIX . ':' . $name ) . '" content="' . esc_attr( $value ) . '"' . ( $xml === true ? ' />' : '>' ) . "\n";
34 34
 	}
35 35
 
36 36
 	/**

0 notes on commit d51ac33

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