Plugin Directory

Changeset 2701492


Ignore:
Timestamp:
03/29/2022 07:51:17 PM (4 years ago)
Author:
ash_hitch
Message:

Update to version 4.17.0 from GitHub

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

Legend:

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

    r2697321 r2701492  
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
    77
    8 ## [4.16.2] - 2022-03-231
     8## [4.17.0] - 2022-03-29
     9
     10### Changed
     11
     12-   Ensure placeholders are replaced (thanks @BronsonQuick)
     13-   Update option names that are deprecated (thanks @BronsonQuick)
     14
     15## [4.16.2] - 2022-03-23
    916
    1017### Changed
  • add-wpgraphql-seo/tags/4.17.0/readme.txt

    r2697321 r2701492  
    55Tested up to: 5.7
    66Requires PHP: 7.1
    7 Stable tag: 4.16.2
     7Stable tag: 4.17.0
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • add-wpgraphql-seo/tags/4.17.0/wp-graphql-yoast-seo.php

    r2697321 r2701492  
    99 * Text Domain:     wp-graphql-yoast-seo
    1010 * Domain Path:     /languages
    11  * Version:         4.16.2
     11 * Version:         4.17.0
    1212 *
    1313 * @package         WP_Graphql_YOAST_SEO
     
    5959        {
    6060            return isset($string) ? html_entity_decode(trim($string)) : null;
     61        }
     62    }
     63
     64    if (!function_exists('wp_gql_seo_replace_vars')) {
     65        function wp_gql_seo_replace_vars($string)
     66        {
     67            // Get all the post types that have been registered.
     68            $post_types = get_post_types();
     69            // Get all the taxonomies that have been registered.
     70            $taxomonies = get_taxonomies();
     71            // Merge them together and pass them through.
     72            $objects = array_merge($post_types, $taxomonies);
     73            return isset($string) ? wpseo_replace_vars($string, $objects) : null;
    6174        }
    6275    }
     
    184197                $carry[$tag] = [
    185198                    'title' => !empty($all['title-' . $type])
    186                         ? $all['title-' . $type]
     199                        ? wp_gql_seo_format_string(
     200                            wp_gql_seo_replace_vars($all['title-' . $type])
     201                        )
    187202                        : null,
    188203                    'metaDesc' => !empty($all['metadesc-' . $type])
    189                         ? $all['metadesc-' . $type]
     204                        ? wp_gql_seo_format_string(
     205                            wp_gql_seo_replace_vars($all['metadesc-' . $type])
     206                        )
    190207                        : null,
    191208                    'metaRobotsNoindex' => !empty($all['noindex-' . $type])
     
    207224                                'archiveLink' => get_post_type_archive_link($type),
    208225                                'title' => !empty($all['title-archive-wpseo'])
    209                                     ? $all['title-archive-wpseo']
     226                                    ? wp_gql_seo_format_string(
     227                                        wp_gql_seo_replace_vars(
     228                                            $all['title-archive-wpseo']
     229                                        )
     230                                    )
    210231                                    : null,
    211232                                'metaDesc' => !empty($all['metadesc-archive-wpseo'])
    212                                     ? $all['metadesc-archive-wpseo']
     233                                    ? wp_gql_seo_format_string(
     234                                        wp_gql_seo_replace_vars(
     235                                            $all['metadesc-archive-wpseo']
     236                                        )
     237                                    )
    213238                                    : null,
    214239                                'metaRobotsNoindex' => !empty(
     
    787812                        'frontPage' => [
    788813                            'title' => wp_gql_seo_format_string(
    789                                 $all['og_frontpage_title']
     814                                wp_gql_seo_replace_vars(
     815                                    $all['open_graph_frontpage_title']
     816                                )
    790817                            ),
    791818                            'description' => wp_gql_seo_format_string(
    792                                 $all['og_frontpage_desc']
     819                                wp_gql_seo_replace_vars(
     820                                    $all['open_graph_frontpage_desc']
     821                                )
    793822                            ),
    794823                            'image' => $context
    795824                                ->get_loader('post')
    796825                                ->load_deferred(
    797                                     absint($all['og_frontpage_image_id'])
     826                                    absint($all['open_graph_frontpage_image_id'])
    798827                                ),
    799828                        ],
  • add-wpgraphql-seo/trunk/CHANGELOG.md

    r2697321 r2701492  
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
    77
    8 ## [4.16.2] - 2022-03-231
     8## [4.17.0] - 2022-03-29
     9
     10### Changed
     11
     12-   Ensure placeholders are replaced (thanks @BronsonQuick)
     13-   Update option names that are deprecated (thanks @BronsonQuick)
     14
     15## [4.16.2] - 2022-03-23
    916
    1017### Changed
  • add-wpgraphql-seo/trunk/readme.txt

    r2697321 r2701492  
    55Tested up to: 5.7
    66Requires PHP: 7.1
    7 Stable tag: 4.16.2
     7Stable tag: 4.17.0
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • add-wpgraphql-seo/trunk/wp-graphql-yoast-seo.php

    r2697321 r2701492  
    99 * Text Domain:     wp-graphql-yoast-seo
    1010 * Domain Path:     /languages
    11  * Version:         4.16.2
     11 * Version:         4.17.0
    1212 *
    1313 * @package         WP_Graphql_YOAST_SEO
     
    5959        {
    6060            return isset($string) ? html_entity_decode(trim($string)) : null;
     61        }
     62    }
     63
     64    if (!function_exists('wp_gql_seo_replace_vars')) {
     65        function wp_gql_seo_replace_vars($string)
     66        {
     67            // Get all the post types that have been registered.
     68            $post_types = get_post_types();
     69            // Get all the taxonomies that have been registered.
     70            $taxomonies = get_taxonomies();
     71            // Merge them together and pass them through.
     72            $objects = array_merge($post_types, $taxomonies);
     73            return isset($string) ? wpseo_replace_vars($string, $objects) : null;
    6174        }
    6275    }
     
    184197                $carry[$tag] = [
    185198                    'title' => !empty($all['title-' . $type])
    186                         ? $all['title-' . $type]
     199                        ? wp_gql_seo_format_string(
     200                            wp_gql_seo_replace_vars($all['title-' . $type])
     201                        )
    187202                        : null,
    188203                    'metaDesc' => !empty($all['metadesc-' . $type])
    189                         ? $all['metadesc-' . $type]
     204                        ? wp_gql_seo_format_string(
     205                            wp_gql_seo_replace_vars($all['metadesc-' . $type])
     206                        )
    190207                        : null,
    191208                    'metaRobotsNoindex' => !empty($all['noindex-' . $type])
     
    207224                                'archiveLink' => get_post_type_archive_link($type),
    208225                                'title' => !empty($all['title-archive-wpseo'])
    209                                     ? $all['title-archive-wpseo']
     226                                    ? wp_gql_seo_format_string(
     227                                        wp_gql_seo_replace_vars(
     228                                            $all['title-archive-wpseo']
     229                                        )
     230                                    )
    210231                                    : null,
    211232                                'metaDesc' => !empty($all['metadesc-archive-wpseo'])
    212                                     ? $all['metadesc-archive-wpseo']
     233                                    ? wp_gql_seo_format_string(
     234                                        wp_gql_seo_replace_vars(
     235                                            $all['metadesc-archive-wpseo']
     236                                        )
     237                                    )
    213238                                    : null,
    214239                                'metaRobotsNoindex' => !empty(
     
    787812                        'frontPage' => [
    788813                            'title' => wp_gql_seo_format_string(
    789                                 $all['og_frontpage_title']
     814                                wp_gql_seo_replace_vars(
     815                                    $all['open_graph_frontpage_title']
     816                                )
    790817                            ),
    791818                            'description' => wp_gql_seo_format_string(
    792                                 $all['og_frontpage_desc']
     819                                wp_gql_seo_replace_vars(
     820                                    $all['open_graph_frontpage_desc']
     821                                )
    793822                            ),
    794823                            'image' => $context
    795824                                ->get_loader('post')
    796825                                ->load_deferred(
    797                                     absint($all['og_frontpage_image_id'])
     826                                    absint($all['open_graph_frontpage_image_id'])
    798827                                ),
    799828                        ],
Note: See TracChangeset for help on using the changeset viewer.