Make WordPress Core

Changeset 42205


Ignore:
Timestamp:
11/20/2017 06:20:23 AM (6 years ago)
Author:
dd32
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/maint/repair.php

    r37948 r42205  
    2828<?php
    2929
    30 if ( ! defined( 'WP_ALLOW_REPAIR' ) ) {
     30if ( ! defined( 'WP_ALLOW_REPAIR' ) || ! WP_ALLOW_REPAIR ) {
    3131
    3232    echo '<h1 class="screen-reader-text">' . __( 'Allow automatic database repair' ) . '</h1>';
Note: See TracChangeset for help on using the changeset viewer.