From 392361a749ff01e1ad8e88da47a4397ca8eb48f4 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Mon, 10 Aug 2026 13:02:21 +0400 Subject: [PATCH] HTML API: Restore supported tag list in _doing_it_wrong message. When `set_modifiable_text()` is called on a tag that doesn't support it, the message no longer names which tags do. Restore that list, extended with the raw text tags added in [62715], so callers have a clue about where to look. Follow-up to [62715]. See #65372. --- src/wp-includes/html-api/class-wp-html-tag-processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/html-api/class-wp-html-tag-processor.php b/src/wp-includes/html-api/class-wp-html-tag-processor.php index 7ca5191a0f162..a41cf49d174d5 100644 --- a/src/wp-includes/html-api/class-wp-html-tag-processor.php +++ b/src/wp-includes/html-api/class-wp-html-tag-processor.php @@ -4192,7 +4192,7 @@ static function ( $tag_match ) { _doing_it_wrong( __METHOD__, - __( 'This tag does not support setting modifiable text.' ), + __( 'Only the IFRAME, NOEMBED, NOFRAMES, SCRIPT, STYLE, TEXTAREA, TITLE, and XMP tags support setting modifiable text.' ), '7.1.0' ); return false;