Plugin Directory

Changeset 2678268


Ignore:
Timestamp:
02/14/2022 08:15:39 AM (4 years ago)
Author:
ash_hitch
Message:

Update to version 4.16.1 from GitHub

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

Legend:

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

    r2616765 r2678268  
    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.16.1] - 2022-01-23
     9
     10### Changed
     11
     12-   Guarding against undefined values
    713
    814## [4.16.0] - 2021-10-19
  • add-wpgraphql-seo/tags/4.16.1/readme.txt

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

    r2616765 r2678268  
    99 * Text Domain:     wp-graphql-yoast-seo
    1010 * Domain Path:     /languages
    11  * Version:         4.16.0
     11 * Version:         4.16.1
    1212 *
    1313 * @package         WP_Graphql_YOAST_SEO
     
    187187                                'hasArchive' => true,
    188188                                'archiveLink' => get_post_type_archive_link($type),
    189                                 'title' => $all['title-archive-wpseo'],
    190                                 '' => $all['metadesc-archive-wpseo'],
    191                                 '' => $all['noindex-archive-wpseo'],
    192                                 'breadcrumbTitle' => $all['bctitle-archive-wpseo'],
     189                                'title' => !empty($all['title-archive-wpseo'])
     190                                    ? $all['title-archive-wpseo']
     191                                    : null,
     192                                'metaDesc' => !empty($all['metadesc-archive-wpseo'])
     193                                    ? $all['metadesc-archive-wpseo']
     194                                    : null,
     195                                'metaRobotsNoindex' => !empty(
     196                                    $all['noindex-archive-wpseo']
     197                                )
     198                                    ? $all['noindex-archive-wpseo']
     199                                    : null,
     200                                'breadcrumbTitle' => !empty(
     201                                    $all['bctitle-archive-wpseo']
     202                                )
     203                                    ? $all['bctitle-archive-wpseo']
     204                                    : null,
    193205                                'metaRobotsNoindex' => boolval(
    194206                                    $all['noindex-archive-wpseo']
     
    345357                'wordpressSiteName' => ['type' => 'String'],
    346358                'siteUrl' => ['type' => 'String'],
     359                'homeUrl' => ['type' => 'String'],
    347360                'inLanguage' => ['type' => 'String'],
    348361            ],
     
    610623                $redirects = $redirectsObj ? $redirectsObj->get_from_option() : [];
    611624
    612                 $userID = $all['company_or_person_user_id'];
    613                 $user = get_userdata($userID);
     625                $userID = !empty($all['company_or_person_user_id'])
     626                    ? $all['company_or_person_user_id']
     627                    : null;
     628                $user = !empty($userID) ? get_userdata($userID) : null;
    614629
    615630                $mappedRedirects = function ($value) {
     
    738753                        'siteUrl' => wp_gql_seo_format_string(
    739754                            apply_filters('wp_gql_seo_site_url', get_site_url())
     755                        ),
     756                        'homeUrl' => wp_gql_seo_format_string(
     757                            apply_filters('wp_gql_seo_home_url', get_home_url())
    740758                        ),
    741759                        'inLanguage' => wp_gql_seo_format_string(
  • add-wpgraphql-seo/trunk/CHANGELOG.md

    r2616765 r2678268  
    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.16.1] - 2022-01-23
     9
     10### Changed
     11
     12-   Guarding against undefined values
    713
    814## [4.16.0] - 2021-10-19
  • add-wpgraphql-seo/trunk/readme.txt

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

    r2616765 r2678268  
    99 * Text Domain:     wp-graphql-yoast-seo
    1010 * Domain Path:     /languages
    11  * Version:         4.16.0
     11 * Version:         4.16.1
    1212 *
    1313 * @package         WP_Graphql_YOAST_SEO
     
    187187                                'hasArchive' => true,
    188188                                'archiveLink' => get_post_type_archive_link($type),
    189                                 'title' => $all['title-archive-wpseo'],
    190                                 '' => $all['metadesc-archive-wpseo'],
    191                                 '' => $all['noindex-archive-wpseo'],
    192                                 'breadcrumbTitle' => $all['bctitle-archive-wpseo'],
     189                                'title' => !empty($all['title-archive-wpseo'])
     190                                    ? $all['title-archive-wpseo']
     191                                    : null,
     192                                'metaDesc' => !empty($all['metadesc-archive-wpseo'])
     193                                    ? $all['metadesc-archive-wpseo']
     194                                    : null,
     195                                'metaRobotsNoindex' => !empty(
     196                                    $all['noindex-archive-wpseo']
     197                                )
     198                                    ? $all['noindex-archive-wpseo']
     199                                    : null,
     200                                'breadcrumbTitle' => !empty(
     201                                    $all['bctitle-archive-wpseo']
     202                                )
     203                                    ? $all['bctitle-archive-wpseo']
     204                                    : null,
    193205                                'metaRobotsNoindex' => boolval(
    194206                                    $all['noindex-archive-wpseo']
     
    345357                'wordpressSiteName' => ['type' => 'String'],
    346358                'siteUrl' => ['type' => 'String'],
     359                'homeUrl' => ['type' => 'String'],
    347360                'inLanguage' => ['type' => 'String'],
    348361            ],
     
    610623                $redirects = $redirectsObj ? $redirectsObj->get_from_option() : [];
    611624
    612                 $userID = $all['company_or_person_user_id'];
    613                 $user = get_userdata($userID);
     625                $userID = !empty($all['company_or_person_user_id'])
     626                    ? $all['company_or_person_user_id']
     627                    : null;
     628                $user = !empty($userID) ? get_userdata($userID) : null;
    614629
    615630                $mappedRedirects = function ($value) {
     
    738753                        'siteUrl' => wp_gql_seo_format_string(
    739754                            apply_filters('wp_gql_seo_site_url', get_site_url())
     755                        ),
     756                        'homeUrl' => wp_gql_seo_format_string(
     757                            apply_filters('wp_gql_seo_home_url', get_home_url())
    740758                        ),
    741759                        'inLanguage' => wp_gql_seo_format_string(
Note: See TracChangeset for help on using the changeset viewer.