diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php
index c11e747925..e67352128f 100644
--- a/src/wp-admin/includes/post.php
+++ b/src/wp-admin/includes/post.php
@@ -1094,8 +1094,10 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
$return .= ''; // Fix bi-directional text display defect in RTL languages.
$return .= '' . __('Edit') . "\n";
$return .= '' . $post_name . "\n";
- if ( isset($view_post) )
- $return .= "$view_post\n";
+
+ if ( isset( $view_post ) ) {
+ $return .= "$view_post\n";
+ }
$return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug);