Skip to content

Commit 2b2e702

Browse files
committed
Update Plugin Name & Fix Spouse Image
1 parent 0772b8c commit 2b2e702

File tree

4 files changed

+18243
-105
lines changed

4 files changed

+18243
-105
lines changed

build/inc/Schema_Spouse/Spouse.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@ protected function determine_user_id() {
9090
return false;
9191
}
9292

93+
/**
94+
* Overwrite this function and make it straight return data, as spouses do not have images from options.
95+
*
96+
* @param array $data The Person schema.
97+
* @param string $schema_id The string used in the `@id` for the schema.
98+
*
99+
* @return array The Person schema.
100+
*/
101+
protected function set_image_from_options( $data, $schema_id ) {
102+
return $data;
103+
}
104+
93105
/**
94106
* We add the spouse data object to the user graph piece that has triggered
95107
* the generation of this spouse.

build/readme.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ No. This plugin builds on the amazing code developed by the Yoast Team and is a
5353

5454
== Changelog ==
5555

56+
= 1.1.0 =
57+
- Update the plugin name to signal, that this plugin is useless without Yoast SEO. (Thank you, Team Yoast!)
58+
- Fix an issue with the Spouse marup, where the wrong image would be attached to the spouse
59+
5660
= 1.0.0 =
5761
- Public release on WordPress.org
5862
- Added the honorific title extension

0 commit comments

Comments
 (0)