Skip to content

Commit

Permalink
fix: support missing relations index
Browse files Browse the repository at this point in the history
  • Loading branch information
antoscarface committed Oct 11, 2024
1 parent e87dd4b commit 218b1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/vocabulary-terms/jsonld/class-post-jsonld.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function init() {

public function wl_post_jsonld_array( $data, $post_id ) {

$relations = $data['relations'];
$relations = $data['relations'] ?? null;

if ( ! is_a( $relations, 'Wordlift\Relation\Relations' ) ) {
return $data;
Expand Down

0 comments on commit 218b1b9

Please sign in to comment.