Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
ziodave committed Dec 7, 2023
2 parents fe3be54 + 2c20870 commit 2591eff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
10 changes: 9 additions & 1 deletion src/classes/link/class-post-link.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,17 @@ public function __construct() {

public function get_same_as_uris( $id ) {

// It appears that some installs are receiving false here. Which means that an invalid $post_id has been
// provided. Because we pass $single=false (the default) we're going to ignore return values that are not
// arrays.
$same_as = get_post_meta( $id, Wordlift_Schema_Service::FIELD_SAME_AS );
if ( ! is_array( $same_as ) ) {
$same_as = array();
}

return array_merge(
array( $this->entity_service->get_uri( $id ) ),
get_post_meta( $id, Wordlift_Schema_Service::FIELD_SAME_AS )
$same_as
);

}
Expand Down
5 changes: 1 addition & 4 deletions src/includes/class-wordlift-configuration-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -813,10 +813,7 @@ public function set_skip_installation_notice( $value ) {
* @return false|string
*/
public function get_override_website_url() {
$value = $this->get( 'wl_general_settings', self::OVERRIDE_WEBSITE_URL, false );
if ( empty( $value ) ) {
return false;
}
$value = $this->get( 'wl_general_settings', self::OVERRIDE_WEBSITE_URL );

return untrailingslashit( $value );
}
Expand Down
6 changes: 5 additions & 1 deletion src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Tags: SEO, SERP, FAQ Markup, Schema Markup, structured data, schema.org, schema
Requires at least: 5.3
Tested up to: 6.4
Requires PHP: 5.6
Stable tag: 3.51.2
Stable tag: 3.51.4
License: GPLv2 or later

Search engines are looking for meaning, not keywords. WordLift tells Google how your content relates to your brand, products, and stakeholders.
Expand Down Expand Up @@ -143,6 +143,10 @@ You can open your datasets to the public, attaching to it a free or a commercial

== Changelog ==

= 3.51.4 (2023-12-07) =

* Squashes a little bug 🪳 when reading the sameAs URLs.

= 3.51.3 (2023-11-29) =

* For complicated WordPress installs 😅, like when there's a WordPress backend and a headless frontend, now it is possible to override the production URL.
Expand Down

0 comments on commit 2591eff

Please sign in to comment.