Template activation: allow editing descriptions of created templates#72791
Template activation: allow editing descriptions of created templates#72791
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: -56 B (0%) Total Size: 2.37 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 8a59cff. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18915026398
|
| 'wp_template', | ||
| 'wp_template_part', | ||
| ].includes( postType ) | ||
| const _usedAttribute = [ 'wp_template_part' ].includes( postType ) |
There was a problem hiding this comment.
We don't need extra checks here because this is only rendered if the checks below pass and have the edit description button, correct?
There was a problem hiding this comment.
So what should change? Pass usedAttribute from the parent component?
There was a problem hiding this comment.
I didn't notice anything odd in functionality, since in order to render this for a template it should be a created templated. I think it's fine, but with so many nuances with templates I wanted to confirm.
Your hesitation though confuses me a bit. If you're not 100% sure yourself, maybe we should check it again? 🤔
See #72867 |
|
Removing the backport label as the template activation feature has been punted to 7.0. |


What?
See #71735.
Why?
These are just templates in the database of which the excerpt is editable.
How?
Registered templates (with a string ID) have to remain non-editable, while user created templates (in the database) have an integer ID and can be edited.
Testing Instructions
Site Editor > Create or duplicate a template > Document panel > Edit description
Testing Instructions for Keyboard
Screenshots or screencast