mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 09:07:59 +02:00
Interface tweaks.
git-svn-id: http://svn.automattic.com/wordpress/trunk@576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cfa73eebd5
commit
fbe5443405
@ -273,6 +273,7 @@ textarea, input, select {
|
|||||||
#titlediv, #poststatusdiv, #commentstatusdiv, #pingstatusdiv, #postpassworddiv {
|
#titlediv, #poststatusdiv, #commentstatusdiv, #pingstatusdiv, #postpassworddiv {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
height: 6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wphead {
|
#wphead {
|
||||||
|
@ -103,6 +103,8 @@ switch($action) {
|
|||||||
$post_ID = $wpdb->get_var("SELECT ID FROM $tableposts ORDER BY ID DESC LIMIT 1");
|
$post_ID = $wpdb->get_var("SELECT ID FROM $tableposts ORDER BY ID DESC LIMIT 1");
|
||||||
|
|
||||||
// Insert categories
|
// 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) {
|
foreach ($post_categories as $post_category) {
|
||||||
// Double check it's not there already
|
// Double check it's not there already
|
||||||
$exists = $wpdb->get_row("SELECT * FROM $tablepost2cat WHERE post_id = $post_ID AND category_id = $post_category");
|
$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);
|
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 ($post_status == 'publish') {
|
||||||
if((get_settings('use_geo_positions')) && ($post_latf != null) && ($post_lonf != null)) {
|
if((get_settings('use_geo_positions')) && ($post_latf != null) && ($post_lonf != null)) {
|
||||||
pingGeoUrl($post_ID);
|
pingGeoUrl($post_ID);
|
||||||
@ -147,24 +168,6 @@ switch($action) {
|
|||||||
}
|
}
|
||||||
} // end if publish
|
} // 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();
|
exit();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user