[wp-trac] [WordPress Trac] #29325: Use <time datetime> tag in Post Date
WordPress Trac
noreply at wordpress.org
Wed Aug 28 07:23:34 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):
There is a lot of precedent in WP core for things that are generally not a
good idea. :)
Looking at spec for the tag the generic helper would be... non-trivial.
The thing supports not just times, but date-only, time-only, and duration
string values. At which point we are busy building a complex PHP
abstraction for a single HTML tag instead of just templating it.
Let's step back and consider this question — where in WP core or theme
development do we ''need'' this implemented as dedicated function as
opposed to templating this output?
I might be wrong, but it is my impression that value of this tag is in
cases where it's used for specific purpose (such as specific script
working with markup meant for it) rather than generically.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29325#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list