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

Yoast / wordpress-seo / d645700e4dfb868544c3892f819f7cb13858bc39

16 Dec 2025 07:12AM UTC coverage: 41.557%. First build
d645700e4dfb868544c3892f819f7cb13858bc39

Pull #22815

github

web-flow
Merge 5fab7907e into 69bfc7a0e
Pull Request #22815: Add tracking for the task list.

2608 of 9617 branches covered (27.12%)

Branch coverage included in aggregate %.

4 of 80 new or added lines in 11 files covered. (5.0%)

22739 of 51376 relevant lines covered (44.26%)

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_action' => '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