Fix for incorrect header() referral, width.

git-svn-id: https://develop.svn.wordpress.org/trunk@607 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-12-11 19:16:43 +00:00
parent f875841324
commit 33a7e6d4d4
3 changed files with 5 additions and 4 deletions

View File

@ -225,7 +225,7 @@ if ($user_level > 4) {
touch_time(($action == 'edit')); touch_time(($action == 'edit'));
} }
if ('edit' == $action) echo " if ('edit' == $action) echo "
<p><a href='post.php?action=delete&amp;post=$post' onclick=\"return confirm('You are about to delete this post \'".$edited_post_title."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete this post</a></p>"; <p><a href='post.php?action=delete&amp;post=$post->ID' onclick=\"return confirm('You are about to delete this post \'".addslashes($edited_post_title)."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete this post</a></p>";
?> ?>
</div> </div>

View File

@ -359,7 +359,7 @@ switch($action) {
// pingWeblogs($blog_ID); // pingWeblogs($blog_ID);
$sendback = $HTTP_SERVER_VARS['HTTP_REFERER']; $sendback = $HTTP_SERVER_VARS['HTTP_REFERER'];
if (strstr($sendback, 'wp-post')) $sendback = $siteurl .'/wp-admin/post.php'; if (strstr($sendback, 'post.php')) $sendback = $siteurl .'/wp-admin/post.php';
header ('Location: ' . $sendback); header ('Location: ' . $sendback);
break; break;

View File

@ -291,7 +291,7 @@ textarea, input, select {
} }
#wphead { #wphead {
height: 44px; height: 42px;
margin: 0; margin: 0;
background: repeat-x url(../wp-images/header-shadow.png) #f2f2f2; background: repeat-x url(../wp-images/header-shadow.png) #f2f2f2;
} }
@ -299,9 +299,10 @@ textarea, input, select {
#wphead a { #wphead a {
display: block; display: block;
background: url(../wp-images/wp-small.png) no-repeat; background: url(../wp-images/wp-small.png) no-repeat;
height: 44px; height: 42px;
text-decoration: none; text-decoration: none;
text-indent: -1000px; text-indent: -1000px;
line-height: 30px;
width: 200px; width: 200px;
border-bottom: none; border-bottom: none;
margin: 3px 0 0 5px; margin: 3px 0 0 5px;