WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/14/2010 03:50:02 PM (9 years ago)
Author:
scribu
Message:

Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r16303 r16365  
    11221122        $thisyear = ''.intval(substr($m, 0, 4));
    11231123        $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')");
    11251125    } elseif ( !empty($m) ) {
    11261126        $thisyear = ''.intval(substr($m, 0, 4));
Note: See TracChangeset for help on using the changeset viewer.