-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Description
With a theme that includes more than 10 templates, some of the templates are not available in the Site Editor left sidebar.
It seems to be that the templates are being sorted alphabetically, and all templates after the 10th item are dropped from the sidebar.
An example would be a theme that has the following 12 templates:
404
author
index
page
page-blog
page-contact
page-home
page-no-header
page-no-footer
page
search
single
In this scenario the 'search' and 'single' templates are dropped from the available templates in the sidebar, making them unavailable for editing.
It seems to be limited to a total of 10 templates.
With multiple "page" templates they are grouped in a "Page Templates" sub-panel, but still the last 2 do not appear after the "Page Templates" sub heading.
The sidebar was very recently reverted as a temporary solution in #36516
Step-by-step reproduction instructions
Take any theme e.g. empty theme and copy/rename the page (or single) template multiple times until you have more than 10 templates in total.
Load the Site Editor.
Notice any templates that are ordered alphabetically after the 10th item are missing from the available templates.
Screenshots, screen recording, code snippet
No response
Environment info
WP 5.82
Gutenberg 11.9.1
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes