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

WordPress Trac noreply at wordpress.org
Sat Jan 2 02:48:21 UTC 2016


#29325: Use <time datetime> tag in Post Date
-------------------------+------------------------------
 Reporter:  Apiweb       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Date/Time    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by diddledan):

 * keywords:  needs-patch => has-patch


Comment:

 The attached patch adds a new function hooked into {{{the_date}}} filter.
 This function will add {{{<time datetime=""></time>}}} tags if the active
 theme specifies that it supports this. Adding theme support is via html5
 /time-tag:

 {{{ add_theme_support( 'html5', array( 'time-tag', ... ) ); }}}

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


More information about the wp-trac mailing list