diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php
index 78361e30fe..ea6e9011c2 100644
--- a/wp-admin/edit-attachment-rows.php
+++ b/wp-admin/edit-attachment-rows.php
@@ -54,7 +54,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
case 'media':
?>
-
">
+ | ">
ID))); ?>
ID); ?>
|
@@ -97,7 +97,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
$title = $parent_title;
}
?>
- |
+ |
diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php
index c49bc1ffc2..2512eb0e67 100644
--- a/wp-admin/edit-pages.php
+++ b/wp-admin/edit-pages.php
@@ -105,7 +105,7 @@ unset($status_links);
-
+
diff --git a/wp-admin/edit-post-rows.php b/wp-admin/edit-post-rows.php
index 0906b68c8b..1ad98e9f5d 100644
--- a/wp-admin/edit-post-rows.php
+++ b/wp-admin/edit-post-rows.php
@@ -34,6 +34,7 @@ while (have_posts()) : the_post();
$class = 'alternate' == $class ? '' : 'alternate';
global $current_user;
$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
+$edit_link = get_edit_post_link( $post->ID );
$title = get_the_title();
if ( empty($title) )
$title = __('(no title)');
@@ -80,7 +81,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
break;
case 'title':
?>
- ID ) ) { ?>">
+ | ID ) ) { ?>">
post_password) ) { _e(' — Protected'); } elseif ('private' == $post->post_status) { _e(' — Private'); } ?> |
$column_display_name) {
case 'control_edit':
?>
- ID) ) { echo "" . __('Edit') . ""; } ?> |
+ ID) ) { echo "" . __('Edit') . ""; } ?> |
-
+
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 3d6aac5a2a..a102b01a1e 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -457,7 +457,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
break;
case 'title':
?>
- ">
+ | ">
post_status) _e(' — Private'); ?> |
urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ),
+ 'message' => 1
+ ), get_edit_post_link( $page_ID, 'url' ) );
else
- $location = "page.php?action=edit&post=$page_ID&message=4";
+ $location = add_query_arg( 'message', 4, get_edit_post_link( $page_ID, 'url' ) );
} elseif ($_POST['addmeta']) {
$location = add_query_arg( 'message', 2, wp_get_referer() );
$location = explode('#', $location);
@@ -45,7 +48,7 @@ function redirect_page($page_ID) {
} elseif ($action == 'editattachment') {
$location = 'attachments.php';
} else {
- $location = "page.php?action=edit&post=$page_ID&message=4";
+ $location = add_query_arg( 'message', 4, get_edit_post_link( $page_ID, 'url' ) );
}
wp_redirect($location);
diff --git a/wp-admin/post-new.php b/wp-admin/post-new.php
index f1f2da5b9c..168e85919d 100644
--- a/wp-admin/post-new.php
+++ b/wp-admin/post-new.php
@@ -26,7 +26,7 @@ When you’re promoted, just reload this page and you’ll be able to bl
}
if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
-
+
diff --git a/wp-admin/post.php b/wp-admin/post.php
index f6daec97f3..5c5d2c8272 100644
--- a/wp-admin/post.php
+++ b/wp-admin/post.php
@@ -22,9 +22,12 @@ function redirect_post($post_ID = '') {
$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 && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/post-new.php') === false )
- $location = add_query_arg( '_wp_original_http_referer', urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ), "post.php?action=edit&post=$post_ID&message=1" );
+ $location = add_query_arg( array(
+ '_wp_original_http_referer' => urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ),
+ 'message' => 1
+ ), get_edit_post_link( $post_ID, 'url' ) );
else
- $location = "post.php?action=edit&post=$post_ID&message=4";
+ $location = add_query_arg( 'message', 4, get_edit_post_link( $post_ID, 'url' ) );
} elseif (isset($_POST['addmeta']) && $_POST['addmeta']) {
$location = add_query_arg( 'message', 2, wp_get_referer() );
$location = explode('#', $location);
@@ -47,7 +50,7 @@ function redirect_post($post_ID = '') {
} elseif ($action == 'editattachment') {
$location = 'attachments.php';
} else {
- $location = "post.php?action=edit&post=$post_ID&message=4";
+ $location = add_query_arg( 'message', 4, get_edit_post_link( $post_ID, 'url' ) );
}
wp_redirect( $location );
diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php
index a7cb1c0a05..ed9f598d77 100644
--- a/wp-admin/press-this.php
+++ b/wp-admin/press-this.php
@@ -93,7 +93,7 @@ if ( 'post' == $_REQUEST['action'] ) {
?>
-
+