More bug fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0d24e188a0
commit
572ba33802
|
@ -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);
|
||||||
|
|
|
@ -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' />";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue