Changeset 2918714
- Timestamp:
- 05/29/2023 07:43:23 PM (3 years ago)
- Location:
- add-wpgraphql-seo
- Files:
-
- 8 edited
- 1 copied
-
tags/4.22.3 (copied) (copied from add-wpgraphql-seo/trunk)
-
tags/4.22.3/CHANGELOG.md (modified) (2 diffs)
-
tags/4.22.3/package.json (modified) (1 diff)
-
tags/4.22.3/readme.txt (modified) (1 diff)
-
tags/4.22.3/wp-graphql-yoast-seo.php (modified) (5 diffs)
-
trunk/CHANGELOG.md (modified) (2 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wp-graphql-yoast-seo.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-wpgraphql-seo/tags/4.22.3/CHANGELOG.md
r2900285 r2918714 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 7 8 ## [4.22.3] - 2023-05-29 9 10 ### Fixed 11 12 - Fixes an error if $meta is empty for post type archive (#132) (thanks @LiamMartens) 13 8 14 ## [4.22.2] - 2023-04-17 9 15 10 16 ### Fixed 11 17 12 - Cannot return null for non-nullable field "MediaItem.id" (#132) (thanks @izzygld)18 - Cannot return null for non-nullable field "MediaItem.id" (#132) (thanks @izzygld) 13 19 14 20 ## [4.22.1] - 2023-03-08 … … 16 22 ### Fixed 17 23 18 - Taxonomies metatag behaviour fixed (#152)24 - Taxonomies metatag behaviour fixed (#152) 19 25 20 26 ## [4.22.0] - 2023-02-06 -
add-wpgraphql-seo/tags/4.22.3/package.json
r2861055 r2918714 1 1 { 2 2 "name": "wp-graphql-yoast-seo", 3 "version": "4.22. 0",3 "version": "4.22.3", 4 4 "description": "A WPGraphQL Extension that adds support for Yoast SEO", 5 5 "scripts": { -
add-wpgraphql-seo/tags/4.22.3/readme.txt
r2900285 r2918714 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 7.1 7 Stable tag: 4.22. 27 Stable tag: 4.22.3 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
add-wpgraphql-seo/tags/4.22.3/wp-graphql-yoast-seo.php
r2900285 r2918714 9 9 * Text Domain: wp-graphql-yoast-seo 10 10 * Domain Path: /languages 11 * Version: 4.22. 211 * Version: 4.22.3 12 12 * 13 13 * @package WP_Graphql_YOAST_SEO … … 143 143 return null; // Return null instead of false 144 144 } 145 145 146 146 return $id; 147 147 } 148 } 148 } 149 149 150 150 function wp_gql_seo_build_content_types($types) … … 185 185 186 186 $meta = YoastSEO()->meta->for_post_type_archive($type); 187 188 if (empty($meta)) { 189 continue; 190 } 187 191 188 192 $carry[$tag] = [ … … 753 757 '@context' => 'context', 754 758 ]; 755 if ( $post instanceof Term ){759 if ($post instanceof Term) { 756 760 $meta = YoastSEO()->meta->for_term($post->term_id); 757 761 } else { … … 801 805 802 806 if (empty($twitter_image)) { 803 return __return_empty_string();807 return null; 804 808 } 805 809 -
add-wpgraphql-seo/trunk/CHANGELOG.md
r2900285 r2918714 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 7 8 ## [4.22.3] - 2023-05-29 9 10 ### Fixed 11 12 - Fixes an error if $meta is empty for post type archive (#132) (thanks @LiamMartens) 13 8 14 ## [4.22.2] - 2023-04-17 9 15 10 16 ### Fixed 11 17 12 - Cannot return null for non-nullable field "MediaItem.id" (#132) (thanks @izzygld)18 - Cannot return null for non-nullable field "MediaItem.id" (#132) (thanks @izzygld) 13 19 14 20 ## [4.22.1] - 2023-03-08 … … 16 22 ### Fixed 17 23 18 - Taxonomies metatag behaviour fixed (#152)24 - Taxonomies metatag behaviour fixed (#152) 19 25 20 26 ## [4.22.0] - 2023-02-06 -
add-wpgraphql-seo/trunk/package.json
r2861055 r2918714 1 1 { 2 2 "name": "wp-graphql-yoast-seo", 3 "version": "4.22. 0",3 "version": "4.22.3", 4 4 "description": "A WPGraphQL Extension that adds support for Yoast SEO", 5 5 "scripts": { -
add-wpgraphql-seo/trunk/readme.txt
r2900285 r2918714 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 7.1 7 Stable tag: 4.22. 27 Stable tag: 4.22.3 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
add-wpgraphql-seo/trunk/wp-graphql-yoast-seo.php
r2900285 r2918714 9 9 * Text Domain: wp-graphql-yoast-seo 10 10 * Domain Path: /languages 11 * Version: 4.22. 211 * Version: 4.22.3 12 12 * 13 13 * @package WP_Graphql_YOAST_SEO … … 143 143 return null; // Return null instead of false 144 144 } 145 145 146 146 return $id; 147 147 } 148 } 148 } 149 149 150 150 function wp_gql_seo_build_content_types($types) … … 185 185 186 186 $meta = YoastSEO()->meta->for_post_type_archive($type); 187 188 if (empty($meta)) { 189 continue; 190 } 187 191 188 192 $carry[$tag] = [ … … 753 757 '@context' => 'context', 754 758 ]; 755 if ( $post instanceof Term ){759 if ($post instanceof Term) { 756 760 $meta = YoastSEO()->meta->for_term($post->term_id); 757 761 } else { … … 801 805 802 806 if (empty($twitter_image)) { 803 return __return_empty_string();807 return null; 804 808 } 805 809
Note: See TracChangeset
for help on using the changeset viewer.