Skip to content

Commit

Permalink
#4395 - Fixed the issue of Entities instead of UTF-8 in footer json
Browse files Browse the repository at this point in the history
  • Loading branch information
WasimM3 committed May 1, 2020
1 parent 4f1d16a commit 30e1982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ function ampforwp_sd_sitenavigation(){
if($navObj){
$input['@context'] = 'https://schema.org';
$input['@graph'] = $navObj; ?>
<script type="application/ld+json"><?php echo wp_json_encode( $input ); ?></script>
<script type="application/ld+json"><?php echo wp_json_encode( $input,JSON_UNESCAPED_UNICODE ); ?></script>
<?php }
}
}
Expand Down
2 changes: 1 addition & 1 deletion includes/vendor/amp/includes/amp-post-template-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function amp_post_template_add_schemaorg_metadata( $amp_template ) {
$seo_sel = ampforwp_get_setting('ampforwp-seo-selection');
if( (ampforwp_get_setting('ampforwp-seo-yoast-schema') == false && ampforwp_get_setting('ampforwp-seo-selection') == 'yoast') || empty($seo_sel) ){
?>
<script type="application/ld+json"><?php echo wp_json_encode( $metadata ); ?></script>
<script type="application/ld+json"><?php echo wp_json_encode( $metadata,JSON_UNESCAPED_UNICODE); ?></script>
<?php
}
}
Expand Down

0 comments on commit 30e1982

Please sign in to comment.