[wp-trac] [WordPress Trac] #29325: Use <time datetime> tag in Post Date
WordPress Trac
noreply at wordpress.org
Wed Aug 28 07:20:42 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 diddledan):
looking at the patch, I'd prefer that the parameters on the `get_the_*`
functions are reordered so that `$post` is first to match most (all?)
other `get_the_*` functions in Core:
{{{#!php
<?php
function get_the_date( $d = '', $post = null ) {
function get_the_modified_date( $d = '', $post = null ) {
function get_the_time( $d = '', $post = null ) {
function get_the_modified_time( $d = '', $post = null ) {
function get_post_time( $d = 'U', $gmt = false, $post = null, $translate =
false ) {
function get_post_modified_time( $d = 'U', $gmt = false, $post = null,
$translate = false ) {
}}}
should be (IMO):
{{{#!php
<?php
function get_the_date( $post = null, $d = '' ) {
function get_the_modified_date( $post = null, $d = '' ) {
function get_the_time( $post = null, $d = '' ) {
function get_the_modified_time( $post = null, $d = '' ) {
function get_post_time( $post = null, $d = 'U', $gmt = false, $translate =
false ) {
function get_post_modified_time( $post = null, $d = 'U', $gmt = false,
$translate = false ) {
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29325#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list