More bug fixes.

git-svn-id: http://svn.automattic.com/wordpress/trunk@726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-01-06 10:44:41 +00:00
parent 0d24e188a0
commit 572ba33802
2 changed files with 2 additions and 5 deletions

View File

@ -227,7 +227,7 @@ if (empty($orderby)) {
if ((!$whichcat) && (!$m) && (!$p) && (!$w) && (!$s) && empty($poststart) && empty($postend)) { if ((!$whichcat) && (!$m) && (!$p) && (!$w) && (!$s) && empty($poststart) && empty($postend)) {
if ($what_to_show == 'posts') { if ($what_to_show == 'posts') {
$limits = ' LIMIT '.$posts_per_page; $limits = ' LIMIT '.$posts_per_page;
} elseif ($what_to_show == 'days') { } elseif ($what_to_show == 'days' && empty($monthnum) && empty($year) && empty($day)) {
$lastpostdate = get_lastpostdate(); $lastpostdate = get_lastpostdate();
$lastpostdate = mysql2date('Y-m-d 00:00:00',$lastpostdate); $lastpostdate = mysql2date('Y-m-d 00:00:00',$lastpostdate);
$lastpostdate = mysql2date('U',$lastpostdate); $lastpostdate = mysql2date('U',$lastpostdate);

View File

@ -262,10 +262,7 @@ uksort($wpsmiliestrans, 'smiliescmp');
# generates smilies' search & replace arrays # generates smilies' search & replace arrays
foreach($wpsmiliestrans as $smiley => $img) { foreach($wpsmiliestrans as $smiley => $img) {
$wp_smiliessearch[] = $smiley; $wp_smiliessearch[] = $smiley;
$smiley_masked = ''; $smiley_masked = str_replace(' ', '', $smiley);
for ($i = 0; $i < strlen($smiley); $i = $i + 1) {
$smiley_masked .= substr($smiley, $i, 1).chr(160);
}
$wp_smiliesreplace[] = " <img src='$smilies_directory/$img' alt='$smiley_masked' />"; $wp_smiliesreplace[] = " <img src='$smilies_directory/$img' alt='$smiley_masked' />";
} }