Changeset 2499275
- Timestamp:
- 03/19/2021 08:51:25 AM (5 years ago)
- Location:
- add-wpgraphql-seo
- Files:
-
- 8 edited
- 1 copied
-
tags/4.12.0 (copied) (copied from add-wpgraphql-seo/trunk)
-
tags/4.12.0/CHANGELOG.md (modified) (1 diff)
-
tags/4.12.0/README.md (modified) (5 diffs)
-
tags/4.12.0/readme.txt (modified) (1 diff)
-
tags/4.12.0/wp-graphql-yoast-seo.php (modified) (7 diffs)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/README.md (modified) (5 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wp-graphql-yoast-seo.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-wpgraphql-seo/tags/4.12.0/CHANGELOG.md
r2452361 r2499275 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.12.0] - 2021-03-19 9 10 ### Added 11 12 - Archive settings for post types 13 - Reading Time 7 14 8 15 ## [4.11.0] - 2021-01-08 -
add-wpgraphql-seo/tags/4.12.0/README.md
r2452361 r2499275 55 55 56 56 ## Usage with Gatsby 57 57 58 Checkout the companion [Gatsby plugin](https://github.com/ashhitch/gatsby-plugin-wpgraphql-seo) to add in Metadata and JSON LD schema with ease. 58 59 59 60 60 ## Usage … … 108 108 raw 109 109 } 110 readingTime 110 111 } 111 112 author { … … 332 333 raw 333 334 } 335 archive { 336 archiveLink 337 breadcrumbTitle 338 hasArchive 339 metaDesc 340 metaRobotsNoindex 341 title 342 } 334 343 } 335 344 page { … … 353 362 ``` 354 363 355 356 364 ## Support 357 365 … … 360 368 [Twitter: @ash_hitchcock](https://twitter.com/ash_hitchcock) 361 369 362 363 370 > Please Note: Yoast and WPGraphQL and their logos are copyright to their respective owners. -
add-wpgraphql-seo/tags/4.12.0/readme.txt
r2452361 r2499275 3 3 Tags: SEO, Yoast, WPGraphQL, GraphQL, Headless WordPress, Decoupled WordPress, JAMStack 4 4 Requires at least: 5.0 5 Tested up to: 5. 45 Tested up to: 5.7 6 6 Requires PHP: 7.1 7 Stable tag: 4.1 1.07 Stable tag: 4.12.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
add-wpgraphql-seo/tags/4.12.0/wp-graphql-yoast-seo.php
r2452361 r2499275 9 9 * Text Domain: wp-graphql-yoast-seo 10 10 * Domain Path: /languages 11 * Version: 4.1 1.011 * Version: 4.12.0 12 12 * 13 13 * @package WP_Graphql_YOAST_SEO … … 154 154 foreach ($types as $type) { 155 155 $post_type_object = get_post_type_object($type); 156 156 157 if ($post_type_object->graphql_single_name) { 157 158 $tag = wp_gql_seo_get_field_key( … … 163 164 164 165 $carry[$tag] = [ 165 'title' => $all['title-' . $t ag],166 'metaDesc' => $all['metadesc-' . $t ag],167 'metaRobotsNoindex' => $all['noindex-' . $t ag],168 'schemaType' => $all['schema-page-type-' . $t ag],166 'title' => $all['title-' . $type], 167 'metaDesc' => $all['metadesc-' . $type], 168 'metaRobotsNoindex' => $all['noindex-' . $type], 169 'schemaType' => $all['schema-page-type-' . $type], 169 170 'schema' => [ 170 171 'raw' => json_encode($schemaArray, JSON_UNESCAPED_SLASHES), 171 172 ], 173 'archive' => 174 $tag == 'post' //Posts are stored like this 175 ? [ 176 'hasArchive' => true, 177 'archiveLink' => get_post_type_archive_link($type), 178 'title' => $all['title-archive-wpseo'], 179 '' => $all['metadesc-archive-wpseo'], 180 '' => $all['noindex-archive-wpseo'], 181 'breadcrumbTitle' => $all['bctitle-archive-wpseo'], 182 'metaRobotsNoindex' => boolval( 183 $all['noindex-archive-wpseo'] 184 ), 185 ] 186 : [ 187 'hasArchive' => boolval( 188 $post_type_object->has_archive 189 ), 190 'archiveLink' => get_post_type_archive_link($type), 191 'title' => $post_type_object->has_archive 192 ? $all['title-ptarchive-' . $type] 193 : null, 194 'metaDesc' => $post_type_object->has_archive 195 ? $all['metadesc-ptarchive-' . $type] 196 : null, 197 'metaRobotsNoindex' => $post_type_object->has_archive 198 ? boolval($all['noindex-ptarchive-' . $type]) 199 : false, 200 'breadcrumbTitle' => $post_type_object->has_archive 201 ? $all['bctitle-ptarchive-' . $type] 202 : null, 203 ], 172 204 ]; 173 205 } … … 249 281 register_graphql_object_type('PostTypeSEO', [ 250 282 'fields' => array_merge($baseSEOFields, [ 283 'readingTime' => ['type' => 'Float'], 251 284 'schema' => ['type' => 'SEOPostTypeSchema'], 252 285 ]), … … 405 438 ]); 406 439 440 register_graphql_object_type('SEOContentTypeArchive', [ 441 'description' => __( 442 'he Yoast SEO search appearance content types fields', 443 'wp-graphql-yoast-seo' 444 ), 445 'fields' => [ 446 'hasArchive' => ['type' => 'Boolean'], 447 'title' => ['type' => 'String'], 448 'archiveLink' => ['type' => 'String'], 449 'metaDesc' => ['type' => 'String'], 450 'metaRobotsNoindex' => ['type' => 'Boolean'], 451 'breadcrumbTitle' => ['type' => 'String'], 452 ], 453 ]); 407 454 register_graphql_object_type('SEOContentType', [ 408 455 'description' => __( … … 416 463 'schemaType' => ['type' => 'String'], 417 464 'schema' => ['type' => 'SEOPageInfoSchema'], 465 'archive' => ['type' => 'SEOContentTypeArchive'], 418 466 ], 419 467 ]); … … 801 849 YoastSEO()->meta->for_post($post->ID) 802 850 ->canonical 851 ), 852 'readingTime' => floatval( 853 YoastSEO()->meta->for_post($post->ID) 854 ->estimated_reading_time_minutes 803 855 ), 804 856 'breadcrumbs' => YoastSEO()->meta->for_post( -
add-wpgraphql-seo/trunk/CHANGELOG.md
r2452361 r2499275 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.12.0] - 2021-03-19 9 10 ### Added 11 12 - Archive settings for post types 13 - Reading Time 7 14 8 15 ## [4.11.0] - 2021-01-08 -
add-wpgraphql-seo/trunk/README.md
r2452361 r2499275 55 55 56 56 ## Usage with Gatsby 57 57 58 Checkout the companion [Gatsby plugin](https://github.com/ashhitch/gatsby-plugin-wpgraphql-seo) to add in Metadata and JSON LD schema with ease. 58 59 59 60 60 ## Usage … … 108 108 raw 109 109 } 110 readingTime 110 111 } 111 112 author { … … 332 333 raw 333 334 } 335 archive { 336 archiveLink 337 breadcrumbTitle 338 hasArchive 339 metaDesc 340 metaRobotsNoindex 341 title 342 } 334 343 } 335 344 page { … … 353 362 ``` 354 363 355 356 364 ## Support 357 365 … … 360 368 [Twitter: @ash_hitchcock](https://twitter.com/ash_hitchcock) 361 369 362 363 370 > Please Note: Yoast and WPGraphQL and their logos are copyright to their respective owners. -
add-wpgraphql-seo/trunk/readme.txt
r2452361 r2499275 3 3 Tags: SEO, Yoast, WPGraphQL, GraphQL, Headless WordPress, Decoupled WordPress, JAMStack 4 4 Requires at least: 5.0 5 Tested up to: 5. 45 Tested up to: 5.7 6 6 Requires PHP: 7.1 7 Stable tag: 4.1 1.07 Stable tag: 4.12.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
r2452361 r2499275 9 9 * Text Domain: wp-graphql-yoast-seo 10 10 * Domain Path: /languages 11 * Version: 4.1 1.011 * Version: 4.12.0 12 12 * 13 13 * @package WP_Graphql_YOAST_SEO … … 154 154 foreach ($types as $type) { 155 155 $post_type_object = get_post_type_object($type); 156 156 157 if ($post_type_object->graphql_single_name) { 157 158 $tag = wp_gql_seo_get_field_key( … … 163 164 164 165 $carry[$tag] = [ 165 'title' => $all['title-' . $t ag],166 'metaDesc' => $all['metadesc-' . $t ag],167 'metaRobotsNoindex' => $all['noindex-' . $t ag],168 'schemaType' => $all['schema-page-type-' . $t ag],166 'title' => $all['title-' . $type], 167 'metaDesc' => $all['metadesc-' . $type], 168 'metaRobotsNoindex' => $all['noindex-' . $type], 169 'schemaType' => $all['schema-page-type-' . $type], 169 170 'schema' => [ 170 171 'raw' => json_encode($schemaArray, JSON_UNESCAPED_SLASHES), 171 172 ], 173 'archive' => 174 $tag == 'post' //Posts are stored like this 175 ? [ 176 'hasArchive' => true, 177 'archiveLink' => get_post_type_archive_link($type), 178 'title' => $all['title-archive-wpseo'], 179 '' => $all['metadesc-archive-wpseo'], 180 '' => $all['noindex-archive-wpseo'], 181 'breadcrumbTitle' => $all['bctitle-archive-wpseo'], 182 'metaRobotsNoindex' => boolval( 183 $all['noindex-archive-wpseo'] 184 ), 185 ] 186 : [ 187 'hasArchive' => boolval( 188 $post_type_object->has_archive 189 ), 190 'archiveLink' => get_post_type_archive_link($type), 191 'title' => $post_type_object->has_archive 192 ? $all['title-ptarchive-' . $type] 193 : null, 194 'metaDesc' => $post_type_object->has_archive 195 ? $all['metadesc-ptarchive-' . $type] 196 : null, 197 'metaRobotsNoindex' => $post_type_object->has_archive 198 ? boolval($all['noindex-ptarchive-' . $type]) 199 : false, 200 'breadcrumbTitle' => $post_type_object->has_archive 201 ? $all['bctitle-ptarchive-' . $type] 202 : null, 203 ], 172 204 ]; 173 205 } … … 249 281 register_graphql_object_type('PostTypeSEO', [ 250 282 'fields' => array_merge($baseSEOFields, [ 283 'readingTime' => ['type' => 'Float'], 251 284 'schema' => ['type' => 'SEOPostTypeSchema'], 252 285 ]), … … 405 438 ]); 406 439 440 register_graphql_object_type('SEOContentTypeArchive', [ 441 'description' => __( 442 'he Yoast SEO search appearance content types fields', 443 'wp-graphql-yoast-seo' 444 ), 445 'fields' => [ 446 'hasArchive' => ['type' => 'Boolean'], 447 'title' => ['type' => 'String'], 448 'archiveLink' => ['type' => 'String'], 449 'metaDesc' => ['type' => 'String'], 450 'metaRobotsNoindex' => ['type' => 'Boolean'], 451 'breadcrumbTitle' => ['type' => 'String'], 452 ], 453 ]); 407 454 register_graphql_object_type('SEOContentType', [ 408 455 'description' => __( … … 416 463 'schemaType' => ['type' => 'String'], 417 464 'schema' => ['type' => 'SEOPageInfoSchema'], 465 'archive' => ['type' => 'SEOContentTypeArchive'], 418 466 ], 419 467 ]); … … 801 849 YoastSEO()->meta->for_post($post->ID) 802 850 ->canonical 851 ), 852 'readingTime' => floatval( 853 YoastSEO()->meta->for_post($post->ID) 854 ->estimated_reading_time_minutes 803 855 ), 804 856 'breadcrumbs' => YoastSEO()->meta->for_post(
Note: See TracChangeset
for help on using the changeset viewer.