[wp-trac] [WordPress Trac] #53830: Default filters try to create nonce during installation before options table exists
WordPress Trac
noreply at wordpress.org
Mon Aug 2 16:38:12 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 |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"51525" 51525]:
{{{
#!CommitTicketReference repository="" revision="51525"
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.
Fixes #53830.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53830#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list