Changeset 2433418
- Timestamp:
- 12/07/2020 05:55:33 PM (5 years ago)
- Location:
- add-wpgraphql-seo
- Files:
-
- 8 edited
- 1 copied
-
tags/4.10.0 (copied) (copied from add-wpgraphql-seo/trunk)
-
tags/4.10.0/CHANGELOG.md (modified) (1 diff)
-
tags/4.10.0/package.json (modified) (1 diff)
-
tags/4.10.0/readme.txt (modified) (1 diff)
-
tags/4.10.0/wp-graphql-yoast-seo.php (modified) (11 diffs)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wp-graphql-yoast-seo.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-wpgraphql-seo/tags/4.10.0/CHANGELOG.md
r2425433 r2433418 5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 8 ## [4.10.0] - 2020-12-07 9 10 ### Added 11 12 - Raw Schema data for post types, taxonomies, and users 7 13 8 14 ## [4.9.0] - 2020-11-25 -
add-wpgraphql-seo/tags/4.10.0/package.json
r2425433 r2433418 1 1 { 2 2 "name": "wp-graphql-yoast-seo", 3 "version": "4. 2.0",3 "version": "4.10.0", 4 4 "description": "A WPGraphQL Extension that adds support for Yoast SEO", 5 5 "scripts": { -
add-wpgraphql-seo/tags/4.10.0/readme.txt
r2425433 r2433418 5 5 Tested up to: 5.4 6 6 Requires PHP: 7.1 7 Stable tag: 4. 9.07 Stable tag: 4.10.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
add-wpgraphql-seo/tags/4.10.0/wp-graphql-yoast-seo.php
r2425433 r2433418 9 9 * Text Domain: wp-graphql-yoast-seo 10 10 * Domain Path: /languages 11 * Version: 4. 9.011 * Version: 4.10.0 12 12 * 13 13 * @package WP_Graphql_YOAST_SEO … … 197 197 'pageType' => ['type' => ['list_of' => 'String']], 198 198 'articleType' => ['type' => ['list_of' => 'String']], 199 'raw' => ['type' => 'String'], 200 ], 201 ]); 202 register_graphql_object_type('SEOTaxonomySchema', [ 203 'description' => __( 204 'The Schema types for Taxonomy', 205 'wp-graphql-yoast-seo' 206 ), 207 'fields' => [ 208 'raw' => ['type' => 'String'], 199 209 ], 200 210 ]); … … 226 236 227 237 register_graphql_object_type('TaxonomySEO', [ 228 'fields' => $baseSEOFields, 238 'fields' => array_merge($baseSEOFields, [ 239 'schema' => ['type' => 'SEOTaxonomySchema'], 240 ]), 229 241 ]); 230 242 … … 444 456 ]); 445 457 458 register_graphql_object_type('SEOUserSchema', [ 459 'description' => __('The Schema types for User', 'wp-graphql-yoast-seo'), 460 'fields' => [ 461 'raw' => ['type' => 'String'], 462 ], 463 ]); 464 446 465 register_graphql_object_type('SEOUser', [ 447 466 'fields' => [ … … 451 470 'metaRobotsNofollow' => ['type' => 'String'], 452 471 'social' => ['type' => 'SEOUserSocial'], 472 'schema' => ['type' => 'SEOUserSchema'], 453 473 ], 454 474 ]); … … 645 665 // Base array 646 666 $seo = []; 667 668 $map = [ 669 '@id' => 'id', 670 '@type' => 'type', 671 '@graph' => 'graph', 672 '@context' => 'context', 673 ]; 674 675 $schemaArray = YoastSEO()->meta->for_post($post->ID) 676 ->schema; 647 677 648 678 // https://developer.yoast.com/blog/yoast-seo-14-0-using-yoast-seo-surfaces/ … … 763 793 ->schema_article_type 764 794 : [], 795 'raw' => json_encode( 796 $schemaArray, 797 JSON_UNESCAPED_SLASHES 798 ), 765 799 ], 766 800 ]; … … 827 861 $robots = YoastSEO()->meta->for_author($user->userId)->robots; 828 862 863 $schemaArray = YoastSEO()->meta->for_author($user->userId)->schema; 864 829 865 $userSeo = [ 830 866 'title' => wp_gql_seo_format_string( … … 865 901 get_the_author_meta('wikipedia', $user->userId) 866 902 ), 903 ], 904 'schema' => [ 905 'raw' => json_encode($schemaArray, JSON_UNESCAPED_SLASHES), 867 906 ], 868 907 ]; … … 897 936 $robots = YoastSEO()->meta->for_term($term->term_id)->robots; 898 937 938 $schemaArray = YoastSEO()->meta->for_term($term->term_id) 939 ->schema; 940 899 941 // Get data 900 942 $seo = [ … … 985 1027 ->is_cornerstone 986 1028 ), 1029 'schema' => [ 1030 'raw' => json_encode( 1031 $schemaArray, 1032 JSON_UNESCAPED_SLASHES 1033 ), 1034 ], 987 1035 ]; 988 1036 wp_reset_query(); -
add-wpgraphql-seo/trunk/CHANGELOG.md
r2425433 r2433418 5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 8 ## [4.10.0] - 2020-12-07 9 10 ### Added 11 12 - Raw Schema data for post types, taxonomies, and users 7 13 8 14 ## [4.9.0] - 2020-11-25 -
add-wpgraphql-seo/trunk/package.json
r2425433 r2433418 1 1 { 2 2 "name": "wp-graphql-yoast-seo", 3 "version": "4. 2.0",3 "version": "4.10.0", 4 4 "description": "A WPGraphQL Extension that adds support for Yoast SEO", 5 5 "scripts": { -
add-wpgraphql-seo/trunk/readme.txt
r2425433 r2433418 5 5 Tested up to: 5.4 6 6 Requires PHP: 7.1 7 Stable tag: 4. 9.07 Stable tag: 4.10.0 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
r2425433 r2433418 9 9 * Text Domain: wp-graphql-yoast-seo 10 10 * Domain Path: /languages 11 * Version: 4. 9.011 * Version: 4.10.0 12 12 * 13 13 * @package WP_Graphql_YOAST_SEO … … 197 197 'pageType' => ['type' => ['list_of' => 'String']], 198 198 'articleType' => ['type' => ['list_of' => 'String']], 199 'raw' => ['type' => 'String'], 200 ], 201 ]); 202 register_graphql_object_type('SEOTaxonomySchema', [ 203 'description' => __( 204 'The Schema types for Taxonomy', 205 'wp-graphql-yoast-seo' 206 ), 207 'fields' => [ 208 'raw' => ['type' => 'String'], 199 209 ], 200 210 ]); … … 226 236 227 237 register_graphql_object_type('TaxonomySEO', [ 228 'fields' => $baseSEOFields, 238 'fields' => array_merge($baseSEOFields, [ 239 'schema' => ['type' => 'SEOTaxonomySchema'], 240 ]), 229 241 ]); 230 242 … … 444 456 ]); 445 457 458 register_graphql_object_type('SEOUserSchema', [ 459 'description' => __('The Schema types for User', 'wp-graphql-yoast-seo'), 460 'fields' => [ 461 'raw' => ['type' => 'String'], 462 ], 463 ]); 464 446 465 register_graphql_object_type('SEOUser', [ 447 466 'fields' => [ … … 451 470 'metaRobotsNofollow' => ['type' => 'String'], 452 471 'social' => ['type' => 'SEOUserSocial'], 472 'schema' => ['type' => 'SEOUserSchema'], 453 473 ], 454 474 ]); … … 645 665 // Base array 646 666 $seo = []; 667 668 $map = [ 669 '@id' => 'id', 670 '@type' => 'type', 671 '@graph' => 'graph', 672 '@context' => 'context', 673 ]; 674 675 $schemaArray = YoastSEO()->meta->for_post($post->ID) 676 ->schema; 647 677 648 678 // https://developer.yoast.com/blog/yoast-seo-14-0-using-yoast-seo-surfaces/ … … 763 793 ->schema_article_type 764 794 : [], 795 'raw' => json_encode( 796 $schemaArray, 797 JSON_UNESCAPED_SLASHES 798 ), 765 799 ], 766 800 ]; … … 827 861 $robots = YoastSEO()->meta->for_author($user->userId)->robots; 828 862 863 $schemaArray = YoastSEO()->meta->for_author($user->userId)->schema; 864 829 865 $userSeo = [ 830 866 'title' => wp_gql_seo_format_string( … … 865 901 get_the_author_meta('wikipedia', $user->userId) 866 902 ), 903 ], 904 'schema' => [ 905 'raw' => json_encode($schemaArray, JSON_UNESCAPED_SLASHES), 867 906 ], 868 907 ]; … … 897 936 $robots = YoastSEO()->meta->for_term($term->term_id)->robots; 898 937 938 $schemaArray = YoastSEO()->meta->for_term($term->term_id) 939 ->schema; 940 899 941 // Get data 900 942 $seo = [ … … 985 1027 ->is_cornerstone 986 1028 ), 1029 'schema' => [ 1030 'raw' => json_encode( 1031 $schemaArray, 1032 JSON_UNESCAPED_SLASHES 1033 ), 1034 ], 987 1035 ]; 988 1036 wp_reset_query();
Note: See TracChangeset
for help on using the changeset viewer.