Changeset 27230
- Timestamp:
- 02/21/2014 10:38:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r27148 r27230 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 ) … … 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);1443 1444 return apply_filters( 'get_the_date', $the_date, $d);1439 $the_date = mysql2date( $d, $post->post_date ); 1440 1441 return apply_filters( 'get_the_date', $the_date, $d ); 1445 1442 } 1446 1443
Note: See TracChangeset
for help on using the changeset viewer.