Skip to content

Commit

Permalink
Update code & fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradp committed Jan 16, 2019
1 parent aa8ee76 commit 4e700a7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-includes/revision.php
Expand Up @@ -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' );
Expand Down
5 changes: 5 additions & 0 deletions wp-includes/update.php
Expand Up @@ -232,6 +232,11 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) {

// Trigger background updates if running non-interactively, and we weren't called from the update handler.
if ( $doing_cron && ! doing_action( 'wp_maybe_auto_update' ) ) {
/**
* Fires during wp_cron, starting the auto update process.
*
* @since 3.9.0
*/
do_action( 'wp_maybe_auto_update' );
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Expand Up @@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-beta1-44608';
$wp_version = '5.1-beta1-44610';

/**
* Holds the Worndpress DB revision, increments when changes are made to the Worndpress DB schema.
Expand Down

0 comments on commit 4e700a7

Please sign in to comment.