[wp-trac] [WordPress Trac] #58712: Live Preview for block themes doesn't work with beta 3

WordPress Trac noreply at wordpress.org
Wed Jul 12 05:19:54 UTC 2023


#58712: Live Preview for block themes doesn't work with beta 3
--------------------------+-------------------------------------------
 Reporter:  nithins53     |       Owner:  isabel_brison
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.3
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  ui, administration, template
--------------------------+-------------------------------------------
Changes (by peterwilsoncc):

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


Comment:

 In [changeset:"56218" 56218]:
 {{{
 #!CommitTicketReference repository="" revision="56218"
 General: Escape nonce used for block theme activation.

 Add `wp_json_encode()` as an escaping function when setting the
 `WP_BLOCK_THEME_ACTIVATE_NONCE` global on the block theme preview screen.

 This account for custom nonce implementations making use of special
 characters that require escaping in JavaScript strings.

 Props antonvlasenko, ramonopoly.
 Fixes #58712.
 }}}

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


More information about the wp-trac mailing list