[wp-trac] [WordPress Trac] #50913: PHP 8.0: various compatibility fixes
WordPress Trac
noreply at wordpress.org
Thu Oct 15 17:06:03 UTC 2020
#50913: PHP 8.0: various compatibility fixes
-------------------------------------------+-------------------------------
Reporter: jrf | Owner: SergeyBiryukov
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 5.6
Component: General | Version:
Severity: normal | Resolution:
Keywords: php8 has-patch needs-dev-note | Focuses: coding-standards
-------------------------------------------+-------------------------------
Comment (by jorbin):
In [changeset:"49161" 49161]:
{{{
#!CommitTicketReference repository="" revision="49161"
Bootstrap/Load: Don't assume WP_CONTENT_DIR is defined
When the mysql extention isn't loaded and a custom db dropin is not in
place, we give folks a nice error. However, we can't assume that the
WP_CONTENT_DIR constant is set yet since this runs before we define
default constants.
This fixes a PHP8 error.
See: #50913.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50913#comment:71>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list