Skip to content

Commit

Permalink
Update Plugin Name & Fix Spouse Image
Browse files Browse the repository at this point in the history
  • Loading branch information
Luehrsen committed Aug 25, 2021
1 parent 0772b8c commit 2b2e702
Show file tree
Hide file tree
Showing 4 changed files with 18,243 additions and 105 deletions.
12 changes: 12 additions & 0 deletions build/inc/Schema_Spouse/Spouse.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ protected function determine_user_id() {
return false;
}

/**
* Overwrite this function and make it straight return data, as spouses do not have images from options.
*
* @param array $data The Person schema.
* @param string $schema_id The string used in the `@id` for the schema.
*
* @return array The Person schema.
*/
protected function set_image_from_options( $data, $schema_id ) {
return $data;
}

/**
* We add the spouse data object to the user graph piece that has triggered
* the generation of this spouse.
Expand Down
4 changes: 4 additions & 0 deletions build/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ No. This plugin builds on the amazing code developed by the Yoast Team and is a

== Changelog ==

= 1.1.0 =
- Update the plugin name to signal, that this plugin is useless without Yoast SEO. (Thank you, Team Yoast!)
- Fix an issue with the Spouse marup, where the wrong image would be attached to the spouse

= 1.0.0 =
- Public release on WordPress.org
- Added the honorific title extension
Expand Down
Loading

0 comments on commit 2b2e702

Please sign in to comment.