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