Skip to content

Commit

Permalink
Fix yoast filter front schema webpage (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
herrvigg committed Dec 7, 2021
1 parent faaa53a commit 383efce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/wp-seo/wp-seo-front.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ function qtranxf_wpseo_schema_webpage( $data ) {
if ( isset( $data['breadcrumb']['@id'] ) ) {
$data['breadcrumb']['@id'] = qtranxf_convertURL( $data['breadcrumb']['@id'], $lang );
}
if ( isset( $data['potentialAction'][0]['target'] ) ) {
$data['potentialAction'][0]['target'] = [ qtranxf_convertURL( $data['potentialAction'][0]['target'], $lang ) ];
if ( isset( $data['potentialAction'][0]['target'][0] ) ) {
$data['potentialAction'][0]['target'][0] = [ qtranxf_convertURL( $data['potentialAction'][0]['target'][0], $lang ) ];
}

return $data;
Expand Down

0 comments on commit 383efce

Please sign in to comment.