[wp-trac] [WordPress Trac] #51950: Twenty Twenty-One: Fix inconsistent HTML comments after closing HTML tags (was: Post ID missing in comments)

WordPress Trac noreply at wordpress.org
Sun Dec 6 21:25:54 UTC 2020


#51950: Twenty Twenty-One: Fix inconsistent HTML comments after closing HTML tags
---------------------------+-------------------------------
 Reporter:  arcangelini    |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  coding-standards
---------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Bundled Theme


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the report.

 Looking at the other bundled themes, they do indeed all use `<!--
 #post-<?php the_ID(); ?> -->`, some of them since [45209] / #46871.

 Looks like Twenty Twenty-One is not very consistent with this:
 * It uses `<!-- #post-<?php the_ID(); ?> -->` in `template-parts/content
 /content-page.php`.
 * And `<!-- #post-${ID} -->` in other content templates.

 So I think it makes sense to bring some consistency here.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51950#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list