diff --git a/wp-admin/post.php b/wp-admin/post.php index 4da29c65de..febc0b662a 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -14,9 +14,9 @@ function redirect_post($post_ID = '') { $referredby = preg_replace('|https?://[^/]+|i', '', $_POST['referredby']); $referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer()); - if ( 'post' == $_POST['originalaction'] && !empty($_POST['mode']) && 'bookmarklet' == $_POST['mode'] ) { + if ( !empty($_POST['mode']) && 'bookmarklet' == $_POST['mode'] ) { $location = $_POST['referredby']; - } elseif ( 'post' == $_POST['originalaction'] && !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) { + } elseif ( !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) { $location = 'sidebar.php?a=b'; } elseif ( isset($_POST['save']) && ( empty($referredby) || $referredby == $referer || 'redo' != $referredby ) ) { if ( $_POST['_wp_original_http_referer'] && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/post.php') === false ) diff --git a/wp-admin/sidebar.php b/wp-admin/sidebar.php index e580f4a74d..f04eb75d9a 100644 --- a/wp-admin/sidebar.php +++ b/wp-admin/sidebar.php @@ -12,15 +12,15 @@ if ('b' == $_GET['a']) {
-Posted !
-Click here to post again.
+ +Click here to post again.'), 'sidebar.php'); ?>
-