From 71bdb1635bec7ea5905fefdf45d8fc12a492d2b1 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Mon, 20 Nov 2017 06:21:52 +0000 Subject: [PATCH] DB Repair: Only allow non-falsey values of `WP_ALLOW_REPAIR` to access the DB repair functionality. This allows defining the constant as `false` to prevent access (rather than requiring the constant to be removed entirely). Props tiagohillebrandt, munklefish. See #11717. Fixes #42622. Built from https://develop.svn.wordpress.org/trunk@42205 git-svn-id: http://core.svn.wordpress.org/trunk@42034 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/maint/repair.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/maint/repair.php b/wp-admin/maint/repair.php index aa7028878b..163d6b5f1e 100644 --- a/wp-admin/maint/repair.php +++ b/wp-admin/maint/repair.php @@ -27,7 +27,7 @@ header( 'Content-Type: text/html; charset=utf-8' ); ' . __( 'Allow automatic database repair' ) . ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index 471cb0cc68..212c913cb7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42203'; +$wp_version = '5.0-alpha-42205'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.