diff --git a/wp-includes/revision.php b/wp-includes/revision.php index 3bf3171379..bef1d0b44b 100644 --- a/wp-includes/revision.php +++ b/wp-includes/revision.php @@ -582,7 +582,7 @@ function _show_post_preview() { $id = (int) $_GET['preview_id']; if ( false === wp_verify_nonce( $_GET['preview_nonce'], 'post_preview_' . $id ) ) { - wp_die( __( 'Sorry, you are not allowed to preview drafts.' ) ); + wp_die( __( 'Sorry, you are not allowed to preview drafts.' ), 403 ); } add_filter( 'the_preview', '_set_preview' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 87146763f5..36831116e6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-beta1-44609'; +$wp_version = '5.1-beta1-44610'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.