diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php
index 37366b3d14..2a41442534 100644
--- a/wp-admin/includes/post.php
+++ b/wp-admin/includes/post.php
@@ -1302,7 +1302,7 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
$view_link = get_permalink( $post );
} else {
// Allow non-published (private, future) to be viewed at a pretty permalink.
- $view_link = str_replace( array( '%pagename%', '%postname%' ), $post->post_name, urldecode( $permalink ) );
+ $view_link = str_replace( array( '%pagename%', '%postname%' ), $post->post_name, $permalink );
}
}
}
@@ -1312,7 +1312,8 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
$return = '' . __( 'Permalink:' ) . "\n";
if ( false !== $view_link ) {
- $return .= '' . $view_link . "\n";
+ $display_link = urldecode( $view_link );
+ $return .= '' . $display_link . "\n";
} else {
$return .= '' . $permalink . "\n";
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index f3b9213378..b6f8a91b20 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
-$wp_version = '4.5-beta2-36852';
+$wp_version = '4.5-beta2-36853';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.