[wp-trac] [WordPress Trac] #54800: Nonce creation causes DB access errors when initializing multisite networks

WordPress Trac noreply at wordpress.org
Thu Jan 13 00:35:21 UTC 2022


#54800: Nonce creation causes DB access errors when initializing multisite networks
---------------------------+---------------------
 Reporter:  schlessera     |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  high           |   Milestone:  5.9
Component:  Script Loader  |     Version:  trunk
 Severity:  major          |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+---------------------

Comment (by schlessera):

 The root cause here was introduced with the Gutenberg 10.5 merge:
 https://core.trac.wordpress.org/changeset/50824

 The files that added block registration caused scripts to be enqueued
 unconditionally. This in turn triggers the `wp_default_scripts` hook and
 function, which includes REST API assets that require a nonce.

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


More information about the wp-trac mailing list