[wp-trac] [WordPress Trac] #39047: Installer tries to create nonce before options table exists
WordPress Trac
noreply at wordpress.org
Wed Jan 4 05:56:58 UTC 2017
#39047: Installer tries to create nonce before options table exists
-----------------------------+-----------------------
Reporter: nullvariable | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.1
Component: Upgrade/Install | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses: rest-api
-----------------------------+-----------------------
Comment (by rmccue):
Replying to [comment:18 rmccue]:
> `load-scripts.php` isn't used during installation, as
`wp_print_scripts()` is called directly rather than via
`print_footer_scripts`. (This actually might ''already'' fail from calling
`wp_create_nonce`, which isn't stubbed...; will investigate.)
As it turns out, the `did_action( 'init' ) &&` already handles this, so
it's perfectly safe to call `wp_installing()` (and `wp_create_nonce()`)
inside the localisation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39047#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list