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

Yoast / wordpress-seo / 3c002964a85318b42e9bbb17e5d45e4b85fb22a6

15 Dec 2025 01:20PM UTC coverage: 41.553%. First build
3c002964a85318b42e9bbb17e5d45e4b85fb22a6

Pull #22815

github

web-flow
Merge f73a7a0cf into 4336475e1
Pull Request #22815: Add tracking for the task list.

2608 of 9617 branches covered (27.12%)

Branch coverage included in aggregate %.

4 of 76 new or added lines in 10 files covered. (5.26%)

22739 of 51382 relevant lines covered (44.25%)

4.72 hits per line

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

0.0
/src/tracking/infrastructure/tracking-link-adapter.php
1
<?php
2

3
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
4
namespace Yoast\WP\SEO\Tracking\Infrastructure;
5

6
/**
7
 * The adapter of tracking links.
8
 */
9
class Tracking_Link_Adapter {
10

11
        /**
12
         * Creates the tracking link for tasks.
13
         *
14
         * @param string|null $url The URL to enhance.
15
         *
16
         * @return string The enhanced URL.
17
         */
NEW
18
        public function create_tracking_link_for_tasks( ?string $url ): ?string {
×
NEW
19
                if ( $url === null ) {
×
NEW
20
                        return null;
×
21
                }
22

NEW
23
                return \add_query_arg(
×
NEW
24
                        [
×
NEW
25
                                'wpseo_tracked_option' => 'task_first_actioned_on',
×
NEW
26
                                'wpseo_tracking_nonce' => \wp_create_nonce( 'wpseo_tracking_nonce' ),
×
NEW
27
                        ],
×
NEW
28
                        $url
×
NEW
29
                );
×
30
        }
31
}
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