Make WordPress Core

Changeset 38423


Ignore:
Timestamp:
08/28/2016 05:49:05 PM (9 years ago)
Author:
johnbillion
Message:

Upgrade/Install: Don't display PHP errors during installation.

If a user is installing WordPress for the first time and has set WP_DEBUG to true, a PHP error during installation makes for a visually jarring experience.

Fixes #37358

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r38411 r38423  
    335335    }
    336336
    337     if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || wp_doing_ajax() ) {
     337    if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || wp_doing_ajax() ) {
    338338        @ini_set( 'display_errors', 0 );
    339339    }
Note: See TracChangeset for help on using the changeset viewer.