Changeset 21735 for trunk/wp-includes/general-template.php
- Timestamp:
- 09/04/2012 04:29:28 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/general-template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r21610 r21735 1312 1312 */ 1313 1313 function the_date_xml() { 1314 global $post; 1315 echo mysql2date('Y-m-d', $post->post_date, false); 1314 echo mysql2date( 'Y-m-d', get_post()->post_date, false ); 1316 1315 } 1317 1316 … … 1368 1367 */ 1369 1368 function get_the_date( $d = '' ) { 1370 global $post;1369 $post = get_post(); 1371 1370 $the_date = ''; 1372 1371 … … 1529 1528 */ 1530 1529 function the_weekday() { 1531 global $wp_locale , $post;1532 $the_weekday = $wp_locale->get_weekday( mysql2date('w', $post->post_date, false));1530 global $wp_locale; 1531 $the_weekday = $wp_locale->get_weekday( mysql2date( 'w', get_post()->post_date, false ) ); 1533 1532 $the_weekday = apply_filters('the_weekday', $the_weekday); 1534 1533 echo $the_weekday; … … 1547 1546 */ 1548 1547 function the_weekday_date($before='',$after='') { 1549 global $wp_locale, $ post, $day, $previousweekday;1548 global $wp_locale, $day, $previousweekday; 1550 1549 $the_weekday_date = ''; 1551 1550 if ( $currentday != $previousweekday ) { 1552 1551 $the_weekday_date .= $before; 1553 $the_weekday_date .= $wp_locale->get_weekday( mysql2date('w', $post->post_date, false));1552 $the_weekday_date .= $wp_locale->get_weekday( mysql2date( 'w', get_post()->post_date, false ) ); 1554 1553 $the_weekday_date .= $after; 1555 1554 $previousweekday = $currentday;
Note: See TracChangeset
for help on using the changeset viewer.