diff --git a/wp-admin/admin.php b/wp-admin/admin.php
index f8405f9a0..29332b32f 100644
--- a/wp-admin/admin.php
+++ b/wp-admin/admin.php
@@ -48,7 +48,7 @@ $posts_per_page = get_option('posts_per_page');
$date_format = get_option('date_format');
$time_format = get_option('time_format');
-wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'popuptitle', 'popupurl', 'text', 'trackback', 'pingback'));
+wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'text', 'trackback', 'pingback'));
wp_admin_css_color('classic', __('Blue'), admin_url("css/colors-classic.css"), array('#073447', '#21759B', '#EAF3FA', '#BBD8E7'));
wp_admin_css_color('fresh', __('Gray'), admin_url("css/colors-fresh.css"), array('#464646', '#6D6D6D', '#F1F1F1', '#DFDFDF'));
diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
index 025a76451..3bb1cc66c 100644
--- a/wp-admin/edit-form-advanced.php
+++ b/wp-admin/edit-form-advanced.php
@@ -128,10 +128,6 @@ require_once('admin-header.php');
?>
-
-
-
-
diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php
index f29de02f1..c5f3d75f5 100644
--- a/wp-admin/edit-page-form.php
+++ b/wp-admin/edit-page-form.php
@@ -109,12 +109,8 @@ require_once('admin-header.php');
-
-if (isset($mode) && 'bookmarklet' == $mode)
- echo '
';
-?>
diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php
index e93dfe84f..87db0d029 100644
--- a/wp-admin/includes/post.php
+++ b/wp-admin/includes/post.php
@@ -326,29 +326,18 @@ function bulk_edit_posts( $post_data = null ) {
* @return unknown
*/
function get_default_post_to_edit() {
+
+ $post_title = '';
if ( !empty( $_REQUEST['post_title'] ) )
$post_title = esc_html( stripslashes( $_REQUEST['post_title'] ));
- else if ( !empty( $_REQUEST['popuptitle'] ) ) {
- $post_title = esc_html( stripslashes( $_REQUEST['popuptitle'] ));
- $post_title = funky_javascript_fix( $post_title );
- } else {
- $post_title = '';
- }
$post_content = '';
if ( !empty( $_REQUEST['content'] ) )
$post_content = esc_html( stripslashes( $_REQUEST['content'] ));
- else if ( !empty( $post_title ) ) {
- $text = esc_html( stripslashes( urldecode( $_REQUEST['text'] ) ) );
- $text = funky_javascript_fix( $text);
- $popupurl = esc_url($_REQUEST['popupurl']);
- $post_content = '
'.$post_title.''."\n$text";
- }
+ $post_excerpt = '';
if ( !empty( $_REQUEST['excerpt'] ) )
$post_excerpt = esc_html( stripslashes( $_REQUEST['excerpt'] ));
- else
- $post_excerpt = '';
$post->ID = 0;
$post->post_name = '';
diff --git a/wp-admin/page.php b/wp-admin/page.php
index e23f6548b..4e3f64021 100644
--- a/wp-admin/page.php
+++ b/wp-admin/page.php
@@ -31,9 +31,7 @@ function redirect_page($page_ID) {
}
$referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer());
- if ( 'post' == $_POST['originalaction'] && !empty($_POST['mode']) && 'bookmarklet' == $_POST['mode'] ) {
- $location = $_POST['referredby'];
- } elseif ( 'post' == $_POST['originalaction'] && !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) {
+ if ( 'post' == $_POST['originalaction'] && !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) {
$location = 'sidebar.php?a=b';
} elseif ( isset($_POST['save']) || isset($_POST['publish']) ) {
$status = get_post_status( $page_ID );
diff --git a/wp-admin/post.php b/wp-admin/post.php
index cb717cb5e..3cd36a6b5 100644
--- a/wp-admin/post.php
+++ b/wp-admin/post.php
@@ -31,9 +31,7 @@ function redirect_post($post_ID = '') {
}
$referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer());
- if ( !empty($_POST['mode']) && 'bookmarklet' == $_POST['mode'] ) {
- $location = $_POST['referredby'];
- } elseif ( !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) {
+ if ( !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) {
if ( isset($_POST['saveasdraft']) )
$location = 'sidebar.php?a=c';
elseif ( isset($_POST['publish']) )