[wp-trac] [WordPress Trac] #51011: Empty string comparison on home option during DB upgrades is invalid
WordPress Trac
noreply at wordpress.org
Wed Aug 26 17:06:10 UTC 2020
#51011: Empty string comparison on home option during DB upgrades is invalid
-----------------------------+-----------------------------
Reporter: fjarrett | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5.1
Component: Upgrade/Install | Version: 5.5
Severity: minor | Resolution: fixed
Keywords: | Focuses:
-----------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"48869" 48869]:
{{{
#!CommitTicketReference repository="" revision="48869"
Upgrade/Install: Make the check for empty `home` option in
`__get_option()` more resilient.
This addresses a regression in [47808], where the `home` check expected an
empty string to use `siteurl` as a fallback, but `wpdb::get_var()` returns
`null` if the option is empty.
Props fjarrett.
Merges [48868] to the 5.5 branch.
Fixes #51011.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51011#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list