Make WordPress Core

Changeset 726


Ignore:
Timestamp:
01/06/2004 10:44:41 AM (22 years ago)
Author:
saxmatt
Message:

More bug fixes.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r725 r726  
    228228    if ($what_to_show == 'posts') {
    229229        $limits = ' LIMIT '.$posts_per_page;
    230     } elseif ($what_to_show == 'days') {
     230    } elseif ($what_to_show == 'days' && empty($monthnum) && empty($year) && empty($day)) {
    231231        $lastpostdate = get_lastpostdate();
    232232        $lastpostdate = mysql2date('Y-m-d 00:00:00',$lastpostdate);
  • trunk/wp-includes/vars.php

    r718 r726  
    263263foreach($wpsmiliestrans as $smiley => $img) {
    264264    $wp_smiliessearch[] = $smiley;
    265     $smiley_masked = '';
    266     for ($i = 0; $i < strlen($smiley); $i = $i + 1) {
    267         $smiley_masked .= substr($smiley, $i, 1).chr(160);
    268     }
     265    $smiley_masked = str_replace(' ', '', $smiley);
    269266    $wp_smiliesreplace[] = " <img src='$smilies_directory/$img' alt='$smiley_masked' />";
    270267}
Note: See TracChangeset for help on using the changeset viewer.