PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/presenters/twitter/image-presenter.php +3 -4 18.228.5 View file →
@@ -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 }