[wp-trac] [WordPress Trac] #29325: Use <time datetime> tag in Post Date

WordPress Trac noreply at wordpress.org
Wed Aug 28 06:23:35 UTC 2019


#29325: Use <time datetime> tag in Post Date
-------------------------+-----------------------------
 Reporter:  Apiweb       |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  reviewing
 Priority:  normal       |   Milestone:  5.3
Component:  Date/Time    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------

Comment (by Rarst):

 `get_` retrieval functions typically allow changing post context, `the_`
 template tags typically don't and are just meant for the loop.

 I considered implementing `get_` "level" for this one, but since it
 returns ''HTML markup'', I didn't want to encourage passing that around.

 I think making it general purpose function makes it a little too hard to
 use as a "just works" template tag.

 Maybe we should add both? General purpose helper taking care of markup and
 template tags for posts?

 If it works out too clunky we could drop it too. This one isn't mission-
 critical.

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


More information about the wp-trac mailing list