• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AxeWP / wp-graphql-rank-math / 15507442176

07 Jun 2025 11:36AM UTC coverage: 86.429% (-2.0%) from 88.44%
15507442176

Pull #121

github

web-flow
Merge c854da69f into 3bd3ede8c
Pull Request #121: dev: add support for lazy-loading `description`/`deprecationReason` config values

357 of 367 new or added lines in 66 files covered. (97.28%)

60 existing lines in 60 files now uncovered.

2541 of 2940 relevant lines covered (86.43%)

11.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

97.22
/src/Type/WPObject/Settings/General/Links.php
1
<?php
2
/**
3
 * The Links GraphQL object.
4
 *
5
 * @package WPGraphQL\RankMath\Type\WPObject\Settings\General
6
 */
7

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\RankMath\Type\WPObject\Settings\General;
11

12
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
13

14
/**
15
 * Class - Links
16
 */
17
class Links extends ObjectType {
18
        /**
19
         * {@inheritDoc}
20
         */
21
        protected static function type_name(): string {
22
                return 'Links';
20✔
23
        }
24

25
        /**
26
         * {@inheritDoc}
27
         */
28
        public static function get_description(): string {
UNCOV
29
                return __( 'The RankMath SEO links settings.', 'wp-graphql-rank-math' );
×
30
        }
31

32
        /**
33
         * {@inheritDoc}
34
         */
35
        public static function get_fields(): array {
36
                return [
20✔
37
                        'defaultAttachmentRedirectUrl' => [
20✔
38
                                'type'        => 'String',
20✔
39
                                'description' => static fn () => __( 'The default redirection url for attachments without a parent post', 'wp-graphql-rank-math' ),
20✔
40
                        ],
20✔
41
                        'hasCategoryBase'              => [
20✔
42
                                'type'        => 'Boolean',
20✔
43
                                'description' => static fn () => __( 'Whether  /category/ should be included in category archive URLs.', 'wp-graphql-rank-math' ),
20✔
44
                        ],
20✔
45
                        'nofollowDomains'              => [
20✔
46
                                'type'        => 'String',
20✔
47
                                'description' => static fn () => __( 'Only add `nofollow` attributes to links with the following target domains. If null, `nofollow` will be applied to <em>all</em> external domains.', 'wp-graphql-rank-math' ),
20✔
48
                        ],
20✔
49
                        'nofollowExcludedDomains'      => [
20✔
50
                                'type'        => 'String',
20✔
51
                                'description' => static fn () => __( '`nofollow` attributes will <em>not</em> be added to links with the following target domains.', 'wp-graphql-rank-math' ),
20✔
52
                        ],
20✔
53
                        'shouldNofollowImageLinks'     => [
20✔
54
                                'type'        => 'Boolean',
20✔
55
                                'description' => static fn () => __( 'Whether to automatically add the `rel="nofollow" attribute to links pointing to external image files.', 'wp-graphql-rank-math' ),
20✔
56
                        ],
20✔
57
                        'shouldNofollowLinks'          => [
20✔
58
                                'type'        => 'Boolean',
20✔
59
                                'description' => static fn () => __( 'Whether to automatically add the `rel="nofollow" attribute to external links appearing in your posts, pages, and other post types.', 'wp-graphql-rank-math' ),
20✔
60
                        ],
20✔
61
                        'shouldOpenInNewWindow'        => [
20✔
62
                                'type'        => 'Boolean',
20✔
63
                                'description' => static fn () => __( 'Whether to automatically add `target="_blank"` attribute for external links appearing in your posts, pages, and other post types to make them open in a new browser tab or window.', 'wp-graphql-rank-math' ),
20✔
64
                        ],
20✔
65
                        'shouldRedirectAttachments'    => [
20✔
66
                                'type'        => 'Boolean',
20✔
67
                                'description' => static fn () => __( 'Whether to redirect all attachment page URLs to the post they appear in.', 'wp-graphql-rank-math' ),
20✔
68
                        ],
20✔
69
                ];
20✔
70
        }
71
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc