[wp-trac] [WordPress Trac] #63917: Block attributes cannot end in "\"

WordPress Trac noreply at wordpress.org
Thu Sep 4 18:31:17 UTC 2025


#63917: Block attributes cannot end in "\"
--------------------------------------+-------------------------
 Reporter:  jonsurrell                |       Owner:  jonsurrell
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.9
Component:  Editor                    |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------
Changes (by jonsurrell):

 * owner:  (none) => jonsurrell
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60708" 60708]:
 {{{
 #!CommitTicketReference repository="" revision="60708"
 Editor: Use Unicode escape encoding for "\" characters in block
 attributes.

 Corrects an issue with block attribute encoding where JSON strings ending
 in the `\` character would be misencoded and cause block attributes to be
 lost.

 Client-side block serialization was updated with matching logic in
 https://github.com/WordPress/gutenberg/commit/10453ab3a4e665b8403a0cb466dba64689b4b491.

 Developed in https://github.com/WordPress/wordpress-develop/pull/9558.

 Props jonsurrell, westonruter, mamaduka, dmsnell, shailu25.
 Fixes #63917.
 }}}

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


More information about the wp-trac mailing list