Skip to content

Commit b04f8ea

Browse files
committed
Describe contentUrl in imageObject
Debatable, but explained hidden away here: https://developers.google.com/knowledge-graph.
1 parent ca8db6f commit b04f8ea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

schema/tsf-image-graph.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: The SEO Framework - Add image to Schema.org/WebPage
44
* Plugin URI: https://theseoframework.com/
55
* Description: Adds image data to The SEO Framework's Schema.org graph.
6-
* Version: 1.0.0
6+
* Version: 1.1.0
77
* Author: Sybre Waaijer
88
* Author URI: https://theseoframework.com/
99
* License: GPLv3
@@ -72,9 +72,10 @@ public static function build( $args = null ) {
7272
// Hence, this will probably be the first graph item that is iterable.
7373
foreach ( \tsf()->image()->get_image_details( $args, false, 'schema' ) as $image ) {
7474
$details = [
75-
'@id' => static::get_id( $args ),
76-
'@type' => &static::$type,
77-
'url' => $image['url'],
75+
'@id' => static::get_id( $args ),
76+
'@type' => &static::$type,
77+
'url' => $image['url'],
78+
'contentUrl' => $image['url'],
7879
];
7980

8081
// Don't report dimensions if 0; 0 doesn't get scrubbed.

0 commit comments

Comments
 (0)