Fix for incorrect header() referral, width.

git-svn-id: http://svn.automattic.com/wordpress/trunk@607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-12-11 19:16:43 +00:00
parent 2b30f037b0
commit 57da20afcf
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;