More bug fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bab03a7a4b
commit
36841b79b3
@ -227,7 +227,7 @@ if (empty($orderby)) {
|
||||
if ((!$whichcat) && (!$m) && (!$p) && (!$w) && (!$s) && empty($poststart) && empty($postend)) {
|
||||
if ($what_to_show == 'posts') {
|
||||
$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 = mysql2date('Y-m-d 00:00:00',$lastpostdate);
|
||||
$lastpostdate = mysql2date('U',$lastpostdate);
|
||||
|
@ -262,10 +262,7 @@ uksort($wpsmiliestrans, 'smiliescmp');
|
||||
# generates smilies' search & replace arrays
|
||||
foreach($wpsmiliestrans as $smiley => $img) {
|
||||
$wp_smiliessearch[] = $smiley;
|
||||
$smiley_masked = '';
|
||||
for ($i = 0; $i < strlen($smiley); $i = $i + 1) {
|
||||
$smiley_masked .= substr($smiley, $i, 1).chr(160);
|
||||
}
|
||||
$smiley_masked = str_replace(' ', '', $smiley);
|
||||
$wp_smiliesreplace[] = " <img src='$smilies_directory/$img' alt='$smiley_masked' />";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user