From 61904426e232e92c4828e2f8176c6e9670dff402 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Mon, 20 Nov 2017 06:20:23 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@42205 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/maint/repair.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/maint/repair.php b/src/wp-admin/maint/repair.php index aa7028878b..163d6b5f1e 100644 --- a/src/wp-admin/maint/repair.php +++ b/src/wp-admin/maint/repair.php @@ -27,7 +27,7 @@ header( 'Content-Type: text/html; charset=utf-8' ); ' . __( 'Allow automatic database repair' ) . '';