diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
index cb61c58..b5f2b5b 100644
|
|
|
function the_date( $d = '', $before = '', $after = '', $echo = true ) {
|
| 1428 | 1428 | * @since 3.0.0 |
| 1429 | 1429 | * |
| 1430 | 1430 | * @param string $d Optional. PHP date format defaults to the date_format option if not specified. |
| 1431 | | * @return string|null Null if displaying, string if retrieving. |
| | 1431 | * @return string Date the current $post was written. |
| 1432 | 1432 | */ |
| 1433 | 1433 | function get_the_date( $d = '' ) { |
| 1434 | 1434 | $post = get_post(); |
| 1435 | 1435 | |
| 1436 | | if ( '' == $d ) |
| 1437 | | $the_date = mysql2date( get_option( 'date_format' ), $post->post_date ); |
| 1438 | | else |
| 1439 | | $the_date = mysql2date( $d, $post->post_date ); |
| | 1436 | if ( '' == $d ) { |
| | 1437 | $d = get_option( 'date_format' ); |
| | 1438 | } |
| | 1439 | $the_date = mysql2date( $d, $post->post_date ); |
| 1440 | 1440 | |
| 1441 | 1441 | return apply_filters( 'get_the_date', $the_date, $d ); |
| 1442 | 1442 | } |