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

WordPress Trac noreply at wordpress.org
Thu Jan 5 08:17:22 UTC 2017


#39047: Installer tries to create nonce before options table exists
------------------------------------------+-----------------------
 Reporter:  nullvariable                  |       Owner:  rmccue
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  4.7.1
Component:  Upgrade/Install               |     Version:  4.7
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  has-patch commit fixed-major  |     Focuses:  rest-api
------------------------------------------+-----------------------
Changes (by dd32):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39697"]:
 {{{
 #!CommitTicketReference repository="" revision="39697"
 Upgrade/Install: Avoid creating nonce during installation.

 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 isn't available during installation,
 we can safely skip creating a nonce.

 Props nullvariable, pento, dd32, rmccue.
 Merges [39684] to the 4.7 branch.
 Fixes #39047.
 }}}

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


More information about the wp-trac mailing list