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

Yoast / wordpress-seo / 83552b7dc8d32f1061be5fd16cb01f0a354d6b7f

01 Dec 2025 09:40AM UTC coverage: 53.092% (-0.3%) from 53.366%
83552b7dc8d32f1061be5fd16cb01f0a354d6b7f

Pull #22759

github

web-flow
Merge 297ad740e into 2d4f46ab2
Pull Request #22759: Feature/task list

8697 of 16050 branches covered (54.19%)

Branch coverage included in aggregate %.

98 of 605 new or added lines in 51 files covered. (16.2%)

3 existing lines in 2 files now uncovered.

32413 of 61381 relevant lines covered (52.81%)

46976.02 hits per line

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

0.0
/src/conditionals/task-list-enabled-conditional.php
1
<?php
2

3
namespace Yoast\WP\SEO\Conditionals;
4

5
use Yoast\WP\SEO\Helpers\Options_Helper;
6

7
/**
8
 * Conditional that is only met when the 'Task List' feature is enabled.
9
 */
10
class Task_List_Enabled_Conditional implements Conditional {
11

12
        /**
13
         * The options helper.
14
         *
15
         * @var Options_Helper
16
         */
17
        private $options;
18

19
        /**
20
         * Task_List_Enabled_Conditional constructor.
21
         *
22
         * @param Options_Helper $options The options helper.
23
         */
NEW
24
        public function __construct( Options_Helper $options ) {
×
NEW
25
                $this->options = $options;
×
26
        }
27

28
        /**
29
         * Returns whether the 'Task List' feature is enabled.
30
         *
31
         * @return bool `true` when the 'Task List' feature is enabled.
32
         */
NEW
33
        public function is_met() {
×
NEW
34
                return $this->options->get( 'enable_task_list' );
×
35
        }
36
}
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

© 2025 Coveralls, Inc