[wp-trac] [WordPress Trac] #24781: Deprecate the_weekday() and the_weekday_date()
WordPress Trac
noreply at wordpress.org
Wed Jul 17 11:00:40 UTC 2013
#24781: Deprecate the_weekday() and the_weekday_date()
--------------------------+------------------------------
Reporter: DrewAPicture | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by SergeyBiryukov):
Replying to [comment:4 DrewAPicture]:
> Turns out the `$translate` parameter in `mysql2date()` defaults to true,
which means `get_the_date()` and in turn `the_date()` output localized
values.
Correct, also noted in [comment:ticket:23918:6].
> On that same token, I'm not sure which global @nacin was referring to in
`the_weekday_date()`,
`$currentday`, see [24189].
> but I can't quite figure out what its purpose is in relation to
`the_weekday()` — to not display the current post's day if it's different
from the previous one? Is that the previous post's day? Why?
As stated in the inline docs, `the_weekday_date()` only displays the
weekday if the current post's weekday is different from the previous
output. Looks like the idea is the same as in
[http://codex.wordpress.org/Function_Reference/the_date the_date()] vs.
[http://codex.wordpress.org/Function_Reference/the_time the_time()].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24781#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list