Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #53298, comment 2


Ignore:
Timestamp:
05/29/2021 09:51:04 PM (5 years ago)
Author:
machineitsvcs

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53298, comment 2

    v1 v2  
    1 It may also be worth prefacing the elseif condition `file_exists( dirname( ABSPATH ) . '/wp-config-sample.php' )` with a `@` to avoid any error should both the wp-config.php and wp-config-sample.php not exist, similar to what is already done for the wp-config.php when looking in parent directory.
     1It may also be worth prefacing the elseif condition `file_exists( dirname( ABSPATH ) . '/wp-config-sample.php' )` with a `@` to avoid any error should both the wp-config.php and wp-config-sample.php not exist and the parent directory be inaccessible, similar to what is already done for the wp-config.php when looking in parent directory.
    22
    33i.e. using `@file_exists( dirname( ABSPATH ) . '/wp-config-sample.php' )` instead