[wp-trac] [WordPress Trac] #53830: Default filters try to create nonce during installation before options table exists
WordPress Trac
noreply at wordpress.org
Thu Jul 29 23:09:58 UTC 2021
#53830: Default filters try to create nonce during installation before options
table exists
----------------------------------------+---------------------
Reporter: schlessera | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.8.1
Component: Upgrade/Install | Version: 5.7
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses:
----------------------------------------+---------------------
Comment (by SergeyBiryukov):
This can also be reproduced in regular installation:
1. Create a `wp-config.php` without the key/salt constants filled in.
2. Open `/wp-admin/install.php`.
3. At the bottom of that page, there is a `wp_print_scripts()` call.
4. `wp_default_scripts()` calls `wp_create_nonce()`.
5. `wp_create_nonce()` calls `wp_hash()`.
6. `wp_hash()` calls `wp_salt()`.
7. `wp_salt()` tries to save the key/salt values in the database and
fails, as the table does not exist yet.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53830#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list