Skip to content

Commit

Permalink
Feature/entity decode (#97)
Browse files Browse the repository at this point in the history
* add enity decode to string helper

* update changelog
  • Loading branch information
ashhitch authored Apr 26, 2021
1 parent 10dcfa7 commit 78d97cd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.13.1] - 2021-05-06
## [4.14.0] - 2021-04-26

### Changed

- Decode strings via html_entity_decode

## [4.13.1] - 2021-04-06

### Changed

- Version bump again, release failed

## [4.13.0] - 2021-05-06
## [4.13.0] - 2021-04-06

### Added

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: SEO, Yoast, WPGraphQL, GraphQL, Headless WordPress, Decoupled WordPress, J
Requires at least: 5.0
Tested up to: 5.7
Requires PHP: 7.1
Stable tag: 4.13.1
Stable tag: 4.14.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down
4 changes: 2 additions & 2 deletions wp-graphql-yoast-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Author URI: https://www.ashleyhitchcock.com
* Text Domain: wp-graphql-yoast-seo
* Domain Path: /languages
* Version: 4.13.1
* Version: 4.14.0
*
* @package WP_Graphql_YOAST_SEO
*/
Expand Down Expand Up @@ -57,7 +57,7 @@
if (!function_exists('wp_gql_seo_format_string')) {
function wp_gql_seo_format_string($string)
{
return isset($string) ? trim($string) : null;
return isset($string) ? html_entity_decode(trim($string)) : null;
}
}
if (!function_exists('wp_gql_seo_get_og_image')) {
Expand Down

0 comments on commit 78d97cd

Please sign in to comment.