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

Yoast / wordpress-seo / ac40debbe6ca59aa07fe8aea598aedf9dad6a666

18 Feb 2026 10:43AM UTC coverage: 53.061% (+0.08%) from 52.986%
ac40debbe6ca59aa07fe8aea598aedf9dad6a666

Pull #22972

github

web-flow
Merge pull request #23001 from Yoast/1072-task-list-content-titles-are-displayed-with-encoded-html-entities

Decode HTML entities for child task titles
Pull Request #22972: Task List Phase 2

8482 of 15955 branches covered (53.16%)

Branch coverage included in aggregate %.

258 of 399 new or added lines in 30 files covered. (64.66%)

14 existing lines in 3 files now uncovered.

32694 of 61646 relevant lines covered (53.04%)

48531.75 hits per line

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

0.0
/src/task-list/domain/exceptions/incorrect-child-task-usage-exception.php
1
<?php
2

3
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
4
namespace Yoast\WP\SEO\Task_List\Domain\Exceptions;
5

6
use Exception;
7

8
/**
9
 * Exception for incorrect child task usage.
10
 */
11
class Incorrect_Child_Task_Usage_Exception extends Exception {
12

13
        /**
14
         * Constructor of the exception.
15
         *
16
         * @param string|null $task_identifier The identifier of the task that caused the exception.
17
         */
NEW
18
        public function __construct( $task_identifier = null ) {
×
NEW
19
                $message = 'Used child task incorrectly. Child tasks should not be added to the Tasks Collector directly, as they are meant to be used within the context of their parent task.';
×
NEW
20
                if ( $task_identifier !== null ) {
×
NEW
21
                        $message .= ' Offending task: ' . $task_identifier;
×
22
                }
23

NEW
24
                parent::__construct( $message, 400 );
×
25
        }
26
}
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