Changeset 2876556
- Timestamp:
- 03/08/2023 01:47:10 PM (3 years ago)
- Location:
- add-wpgraphql-seo
- Files:
-
- 6 edited
- 1 copied
-
tags/4.22.1 (copied) (copied from add-wpgraphql-seo/trunk)
-
tags/4.22.1/CHANGELOG.md (modified) (2 diffs)
-
tags/4.22.1/readme.txt (modified) (1 diff)
-
tags/4.22.1/wp-graphql-yoast-seo.php (modified) (3 diffs)
-
trunk/CHANGELOG.md (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wp-graphql-yoast-seo.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-wpgraphql-seo/tags/4.22.1/CHANGELOG.md
r2861055 r2876556 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 7 8 ## [4.22.0] - 2022-02-06 8 ## [4.22.1] - 2023-03-08 9 10 ### Fixed 11 12 - Taxonomies metatag behaviour fixed (#152) 13 14 ## [4.22.0] - 2023-02-06 9 15 10 16 ### Added … … 12 18 - `Date archive` title and description 13 19 14 ## [4.21.0] - 202 2-01-0620 ## [4.21.0] - 2023-01-06 15 21 16 22 ### Added -
add-wpgraphql-seo/tags/4.22.1/readme.txt
r2861055 r2876556 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 7.1 7 Stable tag: 4.22. 07 Stable tag: 4.22.1 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
add-wpgraphql-seo/tags/4.22.1/wp-graphql-yoast-seo.php
r2861055 r2876556 9 9 * Text Domain: wp-graphql-yoast-seo 10 10 * Domain Path: /languages 11 * Version: 4.22. 011 * Version: 4.22.1 12 12 * 13 13 * @package WP_Graphql_YOAST_SEO … … 19 19 20 20 use WPGraphQL\AppContext; 21 use WPGraphQL\Model\Term; 21 22 22 23 add_action('admin_init', function () { … … 751 752 '@context' => 'context', 752 753 ]; 753 $meta = YoastSEO()->meta->for_post($post->ID); 754 if( $post instanceof Term ){ 755 $meta = YoastSEO()->meta->for_term($post->term_id); 756 } else { 757 $meta = YoastSEO()->meta->for_post($post->ID); 758 } 754 759 755 760 $schemaArray = $meta !== false ? $meta->schema : []; -
add-wpgraphql-seo/trunk/CHANGELOG.md
r2861055 r2876556 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 7 8 ## [4.22.0] - 2022-02-06 8 ## [4.22.1] - 2023-03-08 9 10 ### Fixed 11 12 - Taxonomies metatag behaviour fixed (#152) 13 14 ## [4.22.0] - 2023-02-06 9 15 10 16 ### Added … … 12 18 - `Date archive` title and description 13 19 14 ## [4.21.0] - 202 2-01-0620 ## [4.21.0] - 2023-01-06 15 21 16 22 ### Added -
add-wpgraphql-seo/trunk/readme.txt
r2861055 r2876556 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 7.1 7 Stable tag: 4.22. 07 Stable tag: 4.22.1 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
r2861055 r2876556 9 9 * Text Domain: wp-graphql-yoast-seo 10 10 * Domain Path: /languages 11 * Version: 4.22. 011 * Version: 4.22.1 12 12 * 13 13 * @package WP_Graphql_YOAST_SEO … … 19 19 20 20 use WPGraphQL\AppContext; 21 use WPGraphQL\Model\Term; 21 22 22 23 add_action('admin_init', function () { … … 751 752 '@context' => 'context', 752 753 ]; 753 $meta = YoastSEO()->meta->for_post($post->ID); 754 if( $post instanceof Term ){ 755 $meta = YoastSEO()->meta->for_term($post->term_id); 756 } else { 757 $meta = YoastSEO()->meta->for_post($post->ID); 758 } 754 759 755 760 $schemaArray = $meta !== false ? $meta->schema : [];
Note: See TracChangeset
for help on using the changeset viewer.