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

Yoast / wordpress-seo / 0840e7bf144fa23e63f03b3d43ae80f5a35be142

28 Nov 2025 07:22AM UTC coverage: 52.628% (-0.7%) from 53.366%
0840e7bf144fa23e63f03b3d43ae80f5a35be142

Pull #22759

github

leonidasmi
Fix date query for new content task
Pull Request #22759: Feature/task list

8318 of 15589 branches covered (53.36%)

Branch coverage included in aggregate %.

10 of 433 new or added lines in 33 files covered. (2.31%)

35 existing lines in 4 files now uncovered.

31819 of 60676 relevant lines covered (52.44%)

47521.37 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