[wp-trac] [WordPress Trac] #56652: New Template Part block content isn't saved when saving a post draft in 6.1

WordPress Trac noreply at wordpress.org
Fri Nov 18 04:29:26 UTC 2022


#56652: New Template Part block content isn't saved when saving a post draft in 6.1
--------------------------+------------------------------
 Reporter:  ashleyleia    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by poena):

 * keywords:   => close


Comment:

 I re-tested in WordPress 6.1.1 and Twenty Twenty-Three, and confirmed that
 the template part is not available in the inserter in the block editor.


 Next, I opened the code editor mode in the block editor and copy pasted
 the following template part:

 {{{
 <!-- wp:template-part
 {"slug":"header","theme":"twentytwentythree","tagName":"header"} /-->
 }}}


 - The header shows correctly in the block editor
 - Saving the draft works without errors
 - The header shows correctly in the preview of the draft on the front
 - Refreshing the draft post works without errors
 - Publishing works without errors
 - The header shows correctly on the front after it has been published

 Editing:
 - Editing existing blocks inside the template part works without errors
 - Adding new blocks inside the template part works without errors

 ----

 Next, I switched to Twenty Twenty-One (classic theme).
 The previously saved post with the header that was copied from Twenty
 Twenty-Three displays correctly in the block editor.

 On the front, there is a message with the text: "Template part has been
 deleted or is unavailable: header"

 Editing the blocks inside the template part works without errors, and
 saving works without errors.
 After saving changes, the front still displays "Template part has been
 deleted or is unavailable: header"


 ----
 I am not sure if this behavior on theme switch is the expected behavior,
 but if it is a bug, it is a separate issue.

 I am not able to reproduce the reported issue and I suggest that we close
 this ticket.

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


More information about the wp-trac mailing list