Skip to content

Commit

Permalink
rescue warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jGRUBBS committed Sep 13, 2024
1 parent 1e5af53 commit 0c19708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function get_yoast_title( $id, $type ) {
} else {
$context = YoastSEO()->meta->for_post( $id );
}
return $context->title;
return $context->title ?? '';
}

/**
Expand All @@ -61,7 +61,7 @@ function get_yoast_description( $id, $type ) {
} else {
$context = YoastSEO()->meta->for_post( $id );
}
return $context->description;
return $context->description ?? '';
}

/**
Expand Down

0 comments on commit 0c19708

Please sign in to comment.