[wp-trac] [WordPress Trac] #53830: Default filters try to create nonce during installation before options table exists
WordPress Trac
noreply at wordpress.org
Thu Aug 5 00:31:34 UTC 2021
#53830: Default filters try to create nonce during installation before options
table exists
-------------------------------------------------+-------------------------
Reporter: schlessera | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8.1
Component: Upgrade/Install | Version: 5.7
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-testing-info | Focuses:
has-patch commit fixed-major |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"51546" 51546]:
{{{
#!CommitTicketReference repository="" revision="51546"
Upgrade/Install: Avoid creating nonce during installation.
This avoids a "Table `wp_options` doesn't exist" database error when
trying to create a nonce for password reset button.
When installing and using database-saved salts, `wp_create_nonce()` causes
database errors as `wp_salt()` attempts to insert into the not-yet-created
options table. Since authentication is not available during installation,
we can safely skip creating a nonce.
Follow-up to [39684], [50129].
Props schlessera, swissspidy, sanketchodavadiya, hellofromTonya,
SergeyBiryukov.
Merges [51525] to the 5.8 branch.
Fixes #53830.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53830#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list