Make WordPress Core

Changeset 894


Ignore:
Timestamp:
02/20/2004 01:14:33 AM (21 years ago)
Author:
michelvaldrighi
Message:

michel is being anal with single quotes

File:
1 edited

Legend:

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

    r885 r894  
    366366    <tr>';
    367367    foreach ($weekday as $wd) {
    368         echo "\n\t\t<th abbr='$wd' scope='col' title='$wd'>" . substr($wd, 0, $daylength) . '</th>';
     368        echo "\n\t\t<th abbr=\"$wd\" scope=\"col\" title=\"$wd\">" . substr($wd, 0, $daylength) . '</th>';
    369369    }
    370370
     
    406406            AND YEAR(post_date) = $thisyear
    407407            AND post_status = 'publish'
    408             AND post_date < '" . date("Y-m-d H:i:s", (time() + ($time_difference * 3600)))."'", ARRAY_N);
     408            AND post_date < '" . date('Y-m-d H:i:s', (time() + ($time_difference * 3600))).'\'', ARRAY_N);
    409409    if ($dayswithposts) {
    410410        foreach ($dayswithposts as $daywith) {
     
    417417
    418418
    419     if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE") ||
    420           strstr(strtolower($_SERVER["HTTP_USER_AGENT"]), "camino") ||
    421           strstr(strtolower($_SERVER["HTTP_USER_AGENT"]), "safari")) {
     419    if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') ||
     420          strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'camino') ||
     421          strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'safari')) {
    422422        $ak_title_separator = "\n";
    423423    } else {
    424         $ak_title_separator = ", ";
     424        $ak_title_separator = ', ';
    425425    }
    426426
     
    435435    if ($ak_post_titles) {
    436436        foreach ($ak_post_titles as $ak_post_title) {
    437             if (empty($ak_titles_for_day["day_".$ak_post_title->dom])) {
    438                 $ak_titles_for_day["day_".$ak_post_title->dom] = '';
     437            if (empty($ak_titles_for_day['day_'.$ak_post_title->dom])) {
     438                $ak_titles_for_day['day_'.$ak_post_title->dom] = '';
    439439            }
    440440            if (empty($ak_titles_for_day["$ak_post_title->dom"])) { // first one
     
    449449    // See how much we should pad in the beginning
    450450    $pad = intval(date('w', $unixmonth));
    451     if (0 != $pad) echo "\n\t\t<td colspan='$pad' class='pad'>&nbsp;</td>";
     451    if (0 != $pad) echo "\n\t\t".'<td colspan="'.$pad.'" class="pad">&nbsp;</td>';
    452452
    453453    $daysinmonth = intval(date('t', $unixmonth));
     
    475475    $pad = 7 - date('w', mktime(0, 0 , 0, $thismonth, $day, $thisyear));
    476476    if ($pad != 0 && $pad != 7)
    477         echo "\n\t\t<td class='pad' colspan='$pad'>&nbsp;</td>";
     477        echo "\n\t\t".'<td class="pad" colspan="'.$pad.'">&nbsp;</td>';
    478478
    479479    echo "\n\t</tr>\n\t</tbody>\n\t</table>";
Note: See TracChangeset for help on using the changeset viewer.