Ticket #27181: 27181.patch
File 27181.patch, 1.3 KB (added by , 11 years ago) |
---|
-
src/wp-includes/general-template.php
1403 1403 */ 1404 1404 function the_date( $d = '', $before = '', $after = '', $echo = true ) { 1405 1405 global $currentday, $previousday; 1406 $the_date = ''; 1406 1407 1407 if ( $currentday != $previousday ) { 1408 $the_date .= $before; 1409 $the_date .= get_the_date( $d ); 1410 $the_date .= $after; 1408 $the_date = $before . get_the_date( $d ) . $after; 1411 1409 $previousday = $currentday; 1412 1410 1413 $the_date = apply_filters( 'the_date', $the_date, $d, $before, $after);1411 $the_date = apply_filters( 'the_date', $the_date, $d, $before, $after ); 1414 1412 1415 1413 if ( $echo ) 1416 1414 echo $the_date; … … 1434 1432 */ 1435 1433 function get_the_date( $d = '' ) { 1436 1434 $post = get_post(); 1437 $the_date = '';1438 1435 1439 1436 if ( '' == $d ) 1440 $the_date .= mysql2date(get_option('date_format'), $post->post_date);1437 $the_date = mysql2date( get_option( 'date_format' ), $post->post_date ); 1441 1438 else 1442 $the_date .= mysql2date($d, $post->post_date);1439 $the_date = mysql2date( $d, $post->post_date ); 1443 1440 1444 return apply_filters( 'get_the_date', $the_date, $d);1441 return apply_filters( 'get_the_date', $the_date, $d ); 1445 1442 } 1446 1443 1447 1444 /**