[wp-trac] [WordPress Trac] #39047: Installer tries to create nonce before options table exists

WordPress Trac noreply at wordpress.org
Mon Dec 5 01:48:51 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:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  rest-api
-----------------------------+-----------------------
Changes (by rmccue):

 * focuses:   => rest-api


Comment:

 Replying to [comment:5 pento]:
 > I'm not sure the best way to fix this - checking `WP_INSTALLING` limits
 the future possibility of using the REST API during installation, which
 I'm not wild about.

 The nonce is only used for authentication checks in any case, which
 doesn't make sense if you don't actually ''have'' any users to
 authenticate against. If we add things in the installer in the future,
 those will need some other way of authenticating.

 The way the patch handles this makes sense to me (although, no need for
 parens around the constant).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39047#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list