Changeset 16303 for trunk/wp-includes/general-template.php
- Timestamp:
- 11/11/2010 04:22:18 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/general-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r16211 r16303 1353 1353 */ 1354 1354 function the_date( $d = '', $before = '', $after = '', $echo = true ) { 1355 global $ day, $previousday;1355 global $currentday, $previousday; 1356 1356 $the_date = ''; 1357 if ( $ day != $previousday ) {1357 if ( $currentday != $previousday ) { 1358 1358 $the_date .= $before; 1359 1359 $the_date .= get_the_date( $d ); 1360 1360 $the_date .= $after; 1361 $previousday = $ day;1361 $previousday = $currentday; 1362 1362 1363 1363 $the_date = apply_filters('the_date', $the_date, $d, $before, $after); … … 1565 1565 global $wp_locale, $post, $day, $previousweekday; 1566 1566 $the_weekday_date = ''; 1567 if ( $ day != $previousweekday ) {1567 if ( $currentday != $previousweekday ) { 1568 1568 $the_weekday_date .= $before; 1569 1569 $the_weekday_date .= $wp_locale->get_weekday(mysql2date('w', $post->post_date, false)); 1570 1570 $the_weekday_date .= $after; 1571 $previousweekday = $ day;1571 $previousweekday = $currentday; 1572 1572 } 1573 1573 $the_weekday_date = apply_filters('the_weekday_date', $the_weekday_date, $before, $after);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)