Changeset 16303
- Timestamp:
- 11/11/2010 04:22:18 PM (14 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r16300 r16303 1345 1345 */ 1346 1346 function is_new_day() { 1347 global $ day, $previousday;1348 if ( $ day != $previousday )1347 global $currentday, $previousday; 1348 if ( $currentday != $previousday ) 1349 1349 return 1; 1350 1350 else -
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); -
trunk/wp-includes/query.php
r16286 r16303 3189 3189 */ 3190 3190 function setup_postdata($post) { 3191 global $id, $authordata, $ day, $currentmonth, $page, $pages, $multipage, $more, $numpages;3191 global $id, $authordata, $currentday, $currentmonth, $page, $pages, $multipage, $more, $numpages; 3192 3192 3193 3193 $id = (int) $post->ID; … … 3195 3195 $authordata = get_userdata($post->post_author); 3196 3196 3197 $ day = mysql2date('d.m.y', $post->post_date, false);3197 $currentday = mysql2date('d.m.y', $post->post_date, false); 3198 3198 $currentmonth = mysql2date('m', $post->post_date, false); 3199 3199 $numpages = 1;
Note: See TracChangeset
for help on using the changeset viewer.