[wp-trac] [WordPress Trac] #36036: Invalid XHTML at lines 2084-2097 of wp-includes/theme.php

WordPress Trac noreply at wordpress.org
Tue Mar 1 23:45:27 UTC 2016


#36036: Invalid XHTML at lines 2084-2097 of wp-includes/theme.php
--------------------------+-----------------------------
 Reporter:  sephr         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.4.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 There is invalid XHTML at lines 2084-2097 of wp-includes/theme.php (
 https://github.com/WordPress/WordPress/blob/3f3fe5a7ed6473e995f9b96ee4bcf36fe4c71a35
 /wp-includes/theme.php#L2084-L2097 )

 This script block needs to be escaped with /*<![CDATA[*/ ..script
 content.. /*]]>*/

 Otherwise it will cause rendering errors for people serving XHTML as
 application/xhtml+xml

 This was not always like this, as 5 years ago when I made my strict XHTMl
 theme there were no errors. I recently re-enabled serving as
 application/xhtml+xml and to my surprise find this regression in the WP
 codebase.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36036>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list