| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | * The method of escaping to use. |
| 22 | 22 | * |
| 23 | 23 | * @var string |
| 24 | 24 | */ |
| 25 | - protected $escaping = 'attribute'; | |
| 25 | + protected $escaping = 'url'; | |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Run the Twitter image value through the `wpseo_twitter_image` filter. |
| 29 | 29 | * |
| @@ -32,11 +32,10 @@ | ||
| 32 | 32 | public function get() { |
| 33 | 33 | /** |
| 34 | 34 | * Filter: 'wpseo_twitter_image' - Allow changing the Twitter Card image. |
| 35 | 35 | * |
| 36 | - * @param Indexable_Presentation $presentation The presentation of an indexable. | |
| 37 | - * | |
| 38 | - * @api string $twitter_image Image URL string. | |
| 36 | + * @param string $twitter_image Image URL string. | |
| 37 | + * @param Indexable_Presentation $presentation The presentation of an indexable. | |
| 39 | 38 | */ |
| 40 | 39 | return (string) \apply_filters( 'wpseo_twitter_image', $this->presentation->twitter_image, $this->presentation ); |
| 41 | 40 | } |
| 42 | 41 | } |