[wp-trac] [WordPress Trac] #53898: Duplicated 404 templates in the TemplatePanel
WordPress Trac
noreply at wordpress.org
Mon Aug 9 06:50:46 UTC 2021
#53898: Duplicated 404 templates in the TemplatePanel
--------------------------+-----------------------------
Reporter: Mamaduka | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.8
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The issue was initially reported on Github -
https://github.com/WordPress/gutenberg/issues/33929.
The original "404" template key is lost when we merge "Default template"
into the available templates array. The `array_merge` will re-index/re-
number keys with numbering values.
Later, when we merge templates on the client-side, this causes duplicated
"404" templates in the dropdown.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53898>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list