WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #24781, comment 4


Ignore:
Timestamp:
07/17/13 04:35:05 (9 months ago)
Author:
DrewAPicture
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24781, comment 4

    initial v1  
    1 At first glance, I thought they were the only way to retrieve the localized day names because they use `WP_Local::get_weekday()`. 
     1At first glance, I thought they were the only way to retrieve the localized day names because they use `WP_Locale::get_weekday()`. 
    22 
    33Turns out the `$translate` parameter in `mysql2date()` defaults to true, which means `get_the_date()` and in turn `the_date()` output localized values. Therefore `the_weekday()` is the same as `the_date( 'l' )`.