Skip to content

Commit

Permalink
fix JSON-LD
Browse files Browse the repository at this point in the history
  • Loading branch information
ziodave committed Jan 7, 2024
1 parent b5a649c commit eb96b0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/classes/jsonld/class-jsonld-article-wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public function after_get_jsonld( $jsonld, $post_id, $context ) {
}

if ( Jsonld_Context_Enum::PAGE !== $context
// Returns true for "1", "true", "on" and "yes". Returns false otherwise.
&& ! filter_input( INPUT_GET, 'article_wrapper', FILTER_VALIDATE_BOOLEAN ) ) {
// Returns true for "1", "true", "on" and "yes". Returns false otherwise.
&& ! filter_input( INPUT_GET, 'article_wrapper', FILTER_VALIDATE_BOOLEAN ) ) {
return $jsonld;
}

Expand Down Expand Up @@ -116,7 +116,7 @@ public function after_get_jsonld( $jsonld, $post_id, $context ) {
}

/**
* @param array $jsonld
* @param array $jsonld
* @param array|false|null $author Either a keyed or an indexed array.
*
* @return void
Expand Down

0 comments on commit eb96b0a

Please sign in to comment.