Skip to content

Commit

Permalink
fix field name
Browse files Browse the repository at this point in the history
  • Loading branch information
ashhitch committed Apr 30, 2020
1 parent 902077f commit d905d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-graphql-yoast-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function get_og_image($images)
'opengraphTitle' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_title),
'opengraphType' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_type),
'opengraphAuthor' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_author),
'opengraphPublisher' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_author),
'opengraphPublisher' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_publisher),
'opengraphDescription' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_description),
'opengraphImage' => DataSource::resolve_post_object(get_og_image(YoastSEO()->meta->for_post($post->ID)->open_graph_images), $context),
'twitterCardType' => trim(YoastSEO()->meta->for_post($post->ID)->twitter_card),
Expand Down Expand Up @@ -335,7 +335,7 @@ function get_og_image($images)
'opengraphTitle' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_title),
'opengraphType' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_type),
'opengraphAuthor' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_author),
'opengraphPublisher' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_author),
'opengraphPublisher' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_publisher),
'opengraphDescription' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_description),
'opengraphImage' => DataSource::resolve_post_object($meta['wpseo_opengraph-image-id'], $context),
'twitterCardType' => trim(YoastSEO()->meta->for_post($post->ID)->twitter_card),
Expand Down

0 comments on commit d905d9d

Please sign in to comment.