Interface tweaks.

git-svn-id: http://svn.automattic.com/wordpress/trunk@576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-12-07 09:26:05 +00:00
parent cfa73eebd5
commit fbe5443405
2 changed files with 22 additions and 18 deletions

View File

@ -273,6 +273,7 @@ textarea, input, select {
#titlediv, #poststatusdiv, #commentstatusdiv, #pingstatusdiv, #postpassworddiv {
float: left;
margin-right: 5px;
height: 6em;
}
#wphead {

View File

@ -103,6 +103,8 @@ switch($action) {
$post_ID = $wpdb->get_var("SELECT ID FROM $tableposts ORDER BY ID DESC LIMIT 1");
// Insert categories
// Check to make sure there is a category, if not just set it to some default
if (!$post_categories) $post_categories = $wpdb->get_var("SELECT cat_ID FROM $tablecategories LIMIT 1");
foreach ($post_categories as $post_category) {
// Double check it's not there already
$exists = $wpdb->get_row("SELECT * FROM $tablepost2cat WHERE post_id = $post_ID AND category_id = $post_category");
@ -121,6 +123,25 @@ switch($action) {
sleep($sleep_after_edit);
}
if (!empty($HTTP_POST_VARS['mode'])) {
switch($HTTP_POST_VARS['mode']) {
case 'bookmarklet':
$location = 'b2bookmarklet.php?a=b';
break;
case 'sidebar':
$location = 'b2sidebar.php?a=b';
break;
default:
$location = 'wp-post.php';
break;
}
} else {
$location = 'wp-post.php';
}
if ('' != $HTTP_POST_VARS['save']) $location = "wp-post.php?action=edit&post=$post_ID";
header("Location: $location");
if ($post_status == 'publish') {
if((get_settings('use_geo_positions')) && ($post_latf != null) && ($post_lonf != null)) {
pingGeoUrl($post_ID);
@ -147,24 +168,6 @@ switch($action) {
}
} // end if publish
if (!empty($HTTP_POST_VARS['mode'])) {
switch($HTTP_POST_VARS['mode']) {
case 'bookmarklet':
$location = 'b2bookmarklet.php?a=b';
break;
case 'sidebar':
$location = 'b2sidebar.php?a=b';
break;
default:
$location = 'wp-post.php';
break;
}
} else {
$location = 'wp-post.php';
}
if ('' != $HTTP_POST_VARS['save']) $location = "wp-post.php?action=edit&post=$post_ID";
header("Location: $location");
exit();
break;