diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 2342ea6a60..5c45503ad9 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -45,6 +45,7 @@ if (get_settings('use_trackback')) { } $saveasdraft = ''; +if (empty($post_status)) $post_status = 'draft'; ?> diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 63b48ad8ea..2e4a7054bb 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -106,7 +106,7 @@ if (isset($_POST['submit'])) { - Using the permalink structure value you currently have, %s, these are the mod_rewrite rules you should have in your .htaccess file.

'), $permalink_structure) ?> +

%s, these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.'), $permalink_structure) ?>

- @@ -139,9 +139,9 @@ foreach ($rewrite as $match => $query) {

-\n"; + + + +?> \ No newline at end of file diff --git a/wp-admin/options.php b/wp-admin/options.php index bb6f45cc4e..f929e77f73 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -109,7 +109,8 @@ $nonbools = array('default_ping_status', 'default_comment_status'); $message .= $dB_errors . '
' . $validation_message; } - if (strstr($_SERVER['HTTP_REFERER'], '?')) $goback = str_replace('&updated=true', '', $_SERVER['HTTP_REFERER']) . '&updated=true'; + $referred = str_replace(array('&updated=true', '?updated=true') , '', $_SERVER['HTTP_REFERER']); + if (strstr($referred, '?')) $goback = $referred . '&updated=true'; else $goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true'; header('Location: ' . $goback); break; diff --git a/wp-admin/post.php b/wp-admin/post.php index adaefeb2f0..3526fed7b2 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -61,7 +61,7 @@ case 'post': } } $post_status = $_POST['post_status']; - if (empty($post_status)) $post_status = get_settings('default_post_status'); + if (empty($post_status)) $post_status = 'draft'; $comment_status = $_POST['comment_status']; if (empty($comment_status)) $comment_status = get_settings('default_comment_status'); $ping_status = $_POST['ping_status']; @@ -133,7 +133,7 @@ case 'post': } else { $location = 'post.php'; } - if ('' != $_POST['advanced']) + if ( '' != $_POST['advanced'] || isset($_POST['save']) ) $location = "post.php?action=edit&post=$post_ID"; header("Location: $location"); // Send user on their way while we keep working @@ -724,7 +724,7 @@ default: