WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.5k stars 4.19k forks source link

Template editor panel: Edit link not appearing for some templates #32646

Closed bobbingwide closed 1 year ago

bobbingwide commented 3 years ago

Description

While attempting to complete Call 7: Polished Portfolios I encountered problems where some of the templates had an edit link but others did not. It was not at all obvious why this should be the case. Perhaps the store only supports 10?

Step-by-step reproduction instructions

Using TT1 blocks and Gutenberg 10.8.0

  1. Add 4 new block-template files eg call-7.html, call-7-2.html, call-seven-three.html and call-seven-four.html each containing the same content. eg.
    <!-- wp:post-content {"layout":{"inherit":true}} /-->
  2. Edit a post
  3. Select the Template panel area
  4. Links for Default template should show Edit and New
  5. Click on the select list to get the drop down.
  6. For each item in the list choose the item and see what links are available.
  7. In my experience 404 will only show New.
  8. For my system all templates up to call-7 display Edit and New.
  9. For all templates from call-seven-four I only get New.

Expected behaviour

Edit link should be available for all templates.

Actual behaviour

Step 4. image Step 5. Note: I've already added 3 templates: reproduce footer problem, empty and WordCamp Outreach image Step 7. image Step 8. image Step 9. image

Screenshots or screen recording (optional)

Code snippet (optional)

WordPress information

Device information

jordesign commented 1 year ago

As this was specific to TT1 and many changes have taken place with the Template Editing functionality - I'm going to close it for now. If this behaviour is observed again - it can be re-opened with additional details.