[wp-trac] [WordPress Trac] #39047: Installer tries to create nonce before options table exists
WordPress Trac
noreply at wordpress.org
Sun Dec 25 00:40:17 UTC 2016
#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 dd32):
Replying to [comment:15 ocean90]:
> [attachment:39047.diff] will produce a PHP fatal error if `SCRIPT_DEBUG`
is false because `wp_installing()` isn't available in load-scripts.php.
Yeah, the conditional needs a `did_action( 'init' ) &&` prepended to it at
a minimum.
I don't like the direct SQL here, or anything which triggers a SQL. Can
this scenario be handled by checking that the underlying values that
nonces rely upon is already setup maybe?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39047#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list