Plugin Directory

Changeset 2506472


Ignore:
Timestamp:
03/31/2021 07:07:39 AM (5 years ago)
Author:
ash_hitch
Message:

Update to version 4.12.1 from GitHub

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

Legend:

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

    r2499275 r2506472  
    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.12.1] - 2021-03-31
     9
     10### Changed
     11
     12-   guard against undefined errors
    713
    814## [4.12.0] - 2021-03-19
  • add-wpgraphql-seo/tags/4.12.1/readme.txt

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

    r2499275 r2506472  
    99 * Text Domain:     wp-graphql-yoast-seo
    1010 * Domain Path:     /languages
    11  * Version:         4.12.0
     11 * Version:         4.12.1
    1212 *
    1313 * @package         WP_Graphql_YOAST_SEO
     
    164164
    165165                $carry[$tag] = [
    166                     'title' => $all['title-' . $type],
    167                     'metaDesc' => $all['metadesc-' . $type],
    168                     'metaRobotsNoindex' => $all['noindex-' . $type],
    169                     'schemaType' => $all['schema-page-type-' . $type],
     166                    'title' => !empty($all['title-' . $type])
     167                        ? $all['title-' . $type]
     168                        : null,
     169                    'metaDesc' => !empty($all['metadesc-' . $type])
     170                        ? $all['metadesc-' . $type]
     171                        : null,
     172                    'metaRobotsNoindex' => !empty($all['noindex-' . $type])
     173                        ? boolval($all['noindex-' . $type])
     174                        : false,
     175                    'schemaType' => !empty($all['schema-page-type-' . $type])
     176                        ? $all['schema-page-type-' . $type]
     177                        : null,
    170178                    'schema' => [
    171                         'raw' => json_encode($schemaArray, JSON_UNESCAPED_SLASHES),
     179                        'raw' => !empty($schemaArray)
     180                            ? json_encode($schemaArray, JSON_UNESCAPED_SLASHES)
     181                            : null,
    172182                    ],
    173183                    'archive' =>
     
    189199                                ),
    190200                                'archiveLink' => get_post_type_archive_link($type),
    191                                 'title' => $post_type_object->has_archive
     201                                'title' => !empty($all['title-ptarchive-' . $type])
    192202                                    ? $all['title-ptarchive-' . $type]
    193203                                    : null,
    194                                 'metaDesc' => $post_type_object->has_archive
     204                                'metaDesc' => !empty(
     205                                    $all['metadesc-ptarchive-' . $type]
     206                                )
    195207                                    ? $all['metadesc-ptarchive-' . $type]
    196208                                    : null,
    197                                 'metaRobotsNoindex' => $post_type_object->has_archive
     209                                'metaRobotsNoindex' => !empty(
     210                                    $all['noindex-ptarchive-' . $type]
     211                                )
    198212                                    ? boolval($all['noindex-ptarchive-' . $type])
    199213                                    : false,
    200                                 'breadcrumbTitle' => $post_type_object->has_archive
     214                                'breadcrumbTitle' => !empty(
     215                                    $all['bctitle-ptarchive-' . $type]
     216                                )
    201217                                    ? $all['bctitle-ptarchive-' . $type]
    202218                                    : null,
     
    933949
    934950                    foreach ($taxonomiesPostObj as $tax) {
    935                         if ($tax->hierarchical && $tax->graphql_single_name) {
     951                        if (
     952                            isset($tax->hierarchical) &&
     953                            isset($tax->graphql_single_name)
     954                        ) {
    936955                            $name =
    937956                                ucfirst($postNameKey) .
  • add-wpgraphql-seo/trunk/CHANGELOG.md

    r2499275 r2506472  
    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.12.1] - 2021-03-31
     9
     10### Changed
     11
     12-   guard against undefined errors
    713
    814## [4.12.0] - 2021-03-19
  • add-wpgraphql-seo/trunk/readme.txt

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

    r2499275 r2506472  
    99 * Text Domain:     wp-graphql-yoast-seo
    1010 * Domain Path:     /languages
    11  * Version:         4.12.0
     11 * Version:         4.12.1
    1212 *
    1313 * @package         WP_Graphql_YOAST_SEO
     
    164164
    165165                $carry[$tag] = [
    166                     'title' => $all['title-' . $type],
    167                     'metaDesc' => $all['metadesc-' . $type],
    168                     'metaRobotsNoindex' => $all['noindex-' . $type],
    169                     'schemaType' => $all['schema-page-type-' . $type],
     166                    'title' => !empty($all['title-' . $type])
     167                        ? $all['title-' . $type]
     168                        : null,
     169                    'metaDesc' => !empty($all['metadesc-' . $type])
     170                        ? $all['metadesc-' . $type]
     171                        : null,
     172                    'metaRobotsNoindex' => !empty($all['noindex-' . $type])
     173                        ? boolval($all['noindex-' . $type])
     174                        : false,
     175                    'schemaType' => !empty($all['schema-page-type-' . $type])
     176                        ? $all['schema-page-type-' . $type]
     177                        : null,
    170178                    'schema' => [
    171                         'raw' => json_encode($schemaArray, JSON_UNESCAPED_SLASHES),
     179                        'raw' => !empty($schemaArray)
     180                            ? json_encode($schemaArray, JSON_UNESCAPED_SLASHES)
     181                            : null,
    172182                    ],
    173183                    'archive' =>
     
    189199                                ),
    190200                                'archiveLink' => get_post_type_archive_link($type),
    191                                 'title' => $post_type_object->has_archive
     201                                'title' => !empty($all['title-ptarchive-' . $type])
    192202                                    ? $all['title-ptarchive-' . $type]
    193203                                    : null,
    194                                 'metaDesc' => $post_type_object->has_archive
     204                                'metaDesc' => !empty(
     205                                    $all['metadesc-ptarchive-' . $type]
     206                                )
    195207                                    ? $all['metadesc-ptarchive-' . $type]
    196208                                    : null,
    197                                 'metaRobotsNoindex' => $post_type_object->has_archive
     209                                'metaRobotsNoindex' => !empty(
     210                                    $all['noindex-ptarchive-' . $type]
     211                                )
    198212                                    ? boolval($all['noindex-ptarchive-' . $type])
    199213                                    : false,
    200                                 'breadcrumbTitle' => $post_type_object->has_archive
     214                                'breadcrumbTitle' => !empty(
     215                                    $all['bctitle-ptarchive-' . $type]
     216                                )
    201217                                    ? $all['bctitle-ptarchive-' . $type]
    202218                                    : null,
     
    933949
    934950                    foreach ($taxonomiesPostObj as $tax) {
    935                         if ($tax->hierarchical && $tax->graphql_single_name) {
     951                        if (
     952                            isset($tax->hierarchical) &&
     953                            isset($tax->graphql_single_name)
     954                        ) {
    936955                            $name =
    937956                                ucfirst($postNameKey) .
Note: See TracChangeset for help on using the changeset viewer.