Plugin Directory

Changeset 2918714


Ignore:
Timestamp:
05/29/2023 07:43:23 PM (3 years ago)
Author:
ash_hitch
Message:

Update to version 4.22.3 from GitHub

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

Legend:

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

    r2900285 r2918714  
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
    77
     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
    814## [4.22.2] - 2023-04-17
    915
    1016### Fixed
    1117
    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)
    1319
    1420## [4.22.1] - 2023-03-08
     
    1622### Fixed
    1723
    18 - Taxonomies metatag behaviour fixed (#152)
     24-   Taxonomies metatag behaviour fixed (#152)
    1925
    2026## [4.22.0] - 2023-02-06
  • add-wpgraphql-seo/tags/4.22.3/package.json

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

    r2900285 r2918714  
    55Tested up to: 6.1.1
    66Requires PHP: 7.1
    7 Stable tag: 4.22.2
     7Stable tag: 4.22.3
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • add-wpgraphql-seo/tags/4.22.3/wp-graphql-yoast-seo.php

    r2900285 r2918714  
    99 * Text Domain:     wp-graphql-yoast-seo
    1010 * Domain Path:     /languages
    11  * Version:         4.22.2
     11 * Version:         4.22.3
    1212 *
    1313 * @package         WP_Graphql_YOAST_SEO
     
    143143                return null; // Return null instead of false
    144144            }
    145    
     145
    146146            return $id;
    147147        }
    148     }   
     148    }
    149149
    150150    function wp_gql_seo_build_content_types($types)
     
    185185
    186186                $meta = YoastSEO()->meta->for_post_type_archive($type);
     187
     188                if (empty($meta)) {
     189                    continue;
     190                }
    187191
    188192                $carry[$tag] = [
     
    753757                '@context' => 'context',
    754758            ];
    755             if( $post instanceof Term ){
     759            if ($post instanceof Term) {
    756760                $meta = YoastSEO()->meta->for_term($post->term_id);
    757761            } else {
     
    801805
    802806                    if (empty($twitter_image)) {
    803                         return __return_empty_string();
     807                        return null;
    804808                    }
    805809
  • add-wpgraphql-seo/trunk/CHANGELOG.md

    r2900285 r2918714  
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
    77
     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
    814## [4.22.2] - 2023-04-17
    915
    1016### Fixed
    1117
    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)
    1319
    1420## [4.22.1] - 2023-03-08
     
    1622### Fixed
    1723
    18 - Taxonomies metatag behaviour fixed (#152)
     24-   Taxonomies metatag behaviour fixed (#152)
    1925
    2026## [4.22.0] - 2023-02-06
  • add-wpgraphql-seo/trunk/package.json

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

    r2900285 r2918714  
    55Tested up to: 6.1.1
    66Requires PHP: 7.1
    7 Stable tag: 4.22.2
     7Stable tag: 4.22.3
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • add-wpgraphql-seo/trunk/wp-graphql-yoast-seo.php

    r2900285 r2918714  
    99 * Text Domain:     wp-graphql-yoast-seo
    1010 * Domain Path:     /languages
    11  * Version:         4.22.2
     11 * Version:         4.22.3
    1212 *
    1313 * @package         WP_Graphql_YOAST_SEO
     
    143143                return null; // Return null instead of false
    144144            }
    145    
     145
    146146            return $id;
    147147        }
    148     }   
     148    }
    149149
    150150    function wp_gql_seo_build_content_types($types)
     
    185185
    186186                $meta = YoastSEO()->meta->for_post_type_archive($type);
     187
     188                if (empty($meta)) {
     189                    continue;
     190                }
    187191
    188192                $carry[$tag] = [
     
    753757                '@context' => 'context',
    754758            ];
    755             if( $post instanceof Term ){
     759            if ($post instanceof Term) {
    756760                $meta = YoastSEO()->meta->for_term($post->term_id);
    757761            } else {
     
    801805
    802806                    if (empty($twitter_image)) {
    803                         return __return_empty_string();
     807                        return null;
    804808                    }
    805809
Note: See TracChangeset for help on using the changeset viewer.