Changeset 16365 for trunk/wp-includes/general-template.php
- Timestamp:
- 11/14/2010 03:50:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r16303 r16365 1122 1122 $thisyear = ''.intval(substr($m, 0, 4)); 1123 1123 $d = (($w - 1) * 7) + 6; //it seems MySQL's weeks disagree with PHP's 1124 $thismonth = $wpdb->get_var("SELECT DATE_FORMAT((DATE_ADD(' ${thisyear}0101', INTERVAL $d DAY) ), '%m')");1124 $thismonth = $wpdb->get_var("SELECT DATE_FORMAT((DATE_ADD('{$thisyear}0101', INTERVAL $d DAY) ), '%m')"); 1125 1125 } elseif ( !empty($m) ) { 1126 1126 $thisyear = ''.intval(substr($m, 0, 4));
Note: See TracChangeset
for help on using the changeset viewer.