[wp-trac] [WordPress Trac] #58201: Incorrect condition in wp_check_php_mysql_versions()

WordPress Trac noreply at wordpress.org
Thu Jul 6 21:52:18 UTC 2023


#58201: Incorrect condition in wp_check_php_mysql_versions()
-------------------------------------+-----------------------
 Reporter:  mikeyzm                  |       Owner:  audrasjb
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  6.3
Component:  Bootstrap/Load           |     Version:  trunk
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------

Comment (by SergeyBiryukov):

 Thanks for the commit!

 Replying to [comment:8 audrasjb]:
 > This changeset adds a 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`.

 Just to clarify for future reference, that's not what this changeset does
 :)

 As noted in the ticket description, that's what [49161] did, which turned
 out to be incorrect.

 [56152] ''removes'' the unnecessary check for `db.php` at `ABSPATH . 'wp-
 content'`, if `WP_CONTENT_DIR` is defined.

 If `WP_CONTENT_DIR` is ''not'' defined, it checks the default location at
 `ABSPATH . 'wp-content/db.php'`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58201#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list