Plugin Directory

Changeset 2433418


Ignore:
Timestamp:
12/07/2020 05:55:33 PM (5 years ago)
Author:
ash_hitch
Message:

Update to version 4.10.0 from GitHub

Location:
add-wpgraphql-seo
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • add-wpgraphql-seo/tags/4.10.0/CHANGELOG.md

    r2425433 r2433418  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
    66and 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
    713
    814## [4.9.0] - 2020-11-25
  • add-wpgraphql-seo/tags/4.10.0/package.json

    r2425433 r2433418  
    11{
    22    "name": "wp-graphql-yoast-seo",
    3     "version": "4.2.0",
     3    "version": "4.10.0",
    44    "description": "A WPGraphQL Extension that adds support for Yoast SEO",
    55    "scripts": {
  • add-wpgraphql-seo/tags/4.10.0/readme.txt

    r2425433 r2433418  
    55Tested up to: 5.4
    66Requires PHP: 7.1
    7 Stable tag: 4.9.0
     7Stable tag: 4.10.0
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • add-wpgraphql-seo/tags/4.10.0/wp-graphql-yoast-seo.php

    r2425433 r2433418  
    99 * Text Domain:     wp-graphql-yoast-seo
    1010 * Domain Path:     /languages
    11  * Version:         4.9.0
     11 * Version:         4.10.0
    1212 *
    1313 * @package         WP_Graphql_YOAST_SEO
     
    197197                'pageType' => ['type' => ['list_of' => 'String']],
    198198                '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'],
    199209            ],
    200210        ]);
     
    226236
    227237        register_graphql_object_type('TaxonomySEO', [
    228             'fields' => $baseSEOFields,
     238            'fields' => array_merge($baseSEOFields, [
     239                'schema' => ['type' => 'SEOTaxonomySchema'],
     240            ]),
    229241        ]);
    230242
     
    444456        ]);
    445457
     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
    446465        register_graphql_object_type('SEOUser', [
    447466            'fields' => [
     
    451470                'metaRobotsNofollow' => ['type' => 'String'],
    452471                'social' => ['type' => 'SEOUserSocial'],
     472                'schema' => ['type' => 'SEOUserSchema'],
    453473            ],
    454474        ]);
     
    645665                                // Base array
    646666                                $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;
    647677
    648678                                // https://developer.yoast.com/blog/yoast-seo-14-0-using-yoast-seo-surfaces/
     
    763793                                                ->schema_article_type
    764794                                            : [],
     795                                        'raw' => json_encode(
     796                                            $schemaArray,
     797                                            JSON_UNESCAPED_SLASHES
     798                                        ),
    765799                                    ],
    766800                                ];
     
    827861                $robots = YoastSEO()->meta->for_author($user->userId)->robots;
    828862
     863                $schemaArray = YoastSEO()->meta->for_author($user->userId)->schema;
     864
    829865                $userSeo = [
    830866                    'title' => wp_gql_seo_format_string(
     
    865901                            get_the_author_meta('wikipedia', $user->userId)
    866902                        ),
     903                    ],
     904                    'schema' => [
     905                        'raw' => json_encode($schemaArray, JSON_UNESCAPED_SLASHES),
    867906                    ],
    868907                ];
     
    897936                        $robots = YoastSEO()->meta->for_term($term->term_id)->robots;
    898937
     938                        $schemaArray = YoastSEO()->meta->for_term($term->term_id)
     939                            ->schema;
     940
    899941                        // Get data
    900942                        $seo = [
     
    9851027                                    ->is_cornerstone
    9861028                            ),
     1029                            'schema' => [
     1030                                'raw' => json_encode(
     1031                                    $schemaArray,
     1032                                    JSON_UNESCAPED_SLASHES
     1033                                ),
     1034                            ],
    9871035                        ];
    9881036                        wp_reset_query();
  • add-wpgraphql-seo/trunk/CHANGELOG.md

    r2425433 r2433418  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
    66and 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
    713
    814## [4.9.0] - 2020-11-25
  • add-wpgraphql-seo/trunk/package.json

    r2425433 r2433418  
    11{
    22    "name": "wp-graphql-yoast-seo",
    3     "version": "4.2.0",
     3    "version": "4.10.0",
    44    "description": "A WPGraphQL Extension that adds support for Yoast SEO",
    55    "scripts": {
  • add-wpgraphql-seo/trunk/readme.txt

    r2425433 r2433418  
    55Tested up to: 5.4
    66Requires PHP: 7.1
    7 Stable tag: 4.9.0
     7Stable tag: 4.10.0
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • add-wpgraphql-seo/trunk/wp-graphql-yoast-seo.php

    r2425433 r2433418  
    99 * Text Domain:     wp-graphql-yoast-seo
    1010 * Domain Path:     /languages
    11  * Version:         4.9.0
     11 * Version:         4.10.0
    1212 *
    1313 * @package         WP_Graphql_YOAST_SEO
     
    197197                'pageType' => ['type' => ['list_of' => 'String']],
    198198                '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'],
    199209            ],
    200210        ]);
     
    226236
    227237        register_graphql_object_type('TaxonomySEO', [
    228             'fields' => $baseSEOFields,
     238            'fields' => array_merge($baseSEOFields, [
     239                'schema' => ['type' => 'SEOTaxonomySchema'],
     240            ]),
    229241        ]);
    230242
     
    444456        ]);
    445457
     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
    446465        register_graphql_object_type('SEOUser', [
    447466            'fields' => [
     
    451470                'metaRobotsNofollow' => ['type' => 'String'],
    452471                'social' => ['type' => 'SEOUserSocial'],
     472                'schema' => ['type' => 'SEOUserSchema'],
    453473            ],
    454474        ]);
     
    645665                                // Base array
    646666                                $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;
    647677
    648678                                // https://developer.yoast.com/blog/yoast-seo-14-0-using-yoast-seo-surfaces/
     
    763793                                                ->schema_article_type
    764794                                            : [],
     795                                        'raw' => json_encode(
     796                                            $schemaArray,
     797                                            JSON_UNESCAPED_SLASHES
     798                                        ),
    765799                                    ],
    766800                                ];
     
    827861                $robots = YoastSEO()->meta->for_author($user->userId)->robots;
    828862
     863                $schemaArray = YoastSEO()->meta->for_author($user->userId)->schema;
     864
    829865                $userSeo = [
    830866                    'title' => wp_gql_seo_format_string(
     
    865901                            get_the_author_meta('wikipedia', $user->userId)
    866902                        ),
     903                    ],
     904                    'schema' => [
     905                        'raw' => json_encode($schemaArray, JSON_UNESCAPED_SLASHES),
    867906                    ],
    868907                ];
     
    897936                        $robots = YoastSEO()->meta->for_term($term->term_id)->robots;
    898937
     938                        $schemaArray = YoastSEO()->meta->for_term($term->term_id)
     939                            ->schema;
     940
    899941                        // Get data
    900942                        $seo = [
     
    9851027                                    ->is_cornerstone
    9861028                            ),
     1029                            'schema' => [
     1030                                'raw' => json_encode(
     1031                                    $schemaArray,
     1032                                    JSON_UNESCAPED_SLASHES
     1033                                ),
     1034                            ],
    9871035                        ];
    9881036                        wp_reset_query();
Note: See TracChangeset for help on using the changeset viewer.