[wp-trac] [WordPress Trac] #58201: Incorrect condition in wp_check_php_mysql_versions()
WordPress Trac
noreply at wordpress.org
Wed Apr 26 18:37:28 UTC 2023
#58201: Incorrect condition in wp_check_php_mysql_versions()
----------------------------+-----------------------------
Reporter: mikeyzm | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: trunk
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
Changeset [49161] introduced an incorrect condition in
`wp_check_php_mysql_versions()`:
{{{
// This runs before default constants are defined, so we can't assume
WP_CONTENT_DIR is set yet.
&& ( defined( 'WP_CONTENT_DIR' ) && ! file_exists( WP_CONTENT_DIR .
'/db.php' )
|| ! file_exists( ABSPATH . 'wp-content/db.php' ) )
}}}
This will check for the existence of `db.php` at the default path `ABSPATH
. 'wp-content/db.php'`, even if `WP_CONTENT_DIR` is defined and `db.php`
is placed in `WP_CONTENT_DIR`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58201>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list