-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full Site Editing: Add the theme source to the templates wp-admin list #27108
Conversation
Size Change: 0 B Total Size: 1.19 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code-wise LGTM and works well on local!
The current (Created from a template file) label is a placeholder intended to start a discussion.
I think this makes sense. As a user it might be confusing to see several templates created without ever doing anything. (For example on theme activation) This would give enough information for the users to understand what's happening.
The failing lint check is just from an outdated package-lock, so i think it needs to be rebased |
17a3592
to
277b4f4
Compare
Super useful for debugging 👍 |
Description
We recently added a
wp_theme
taxonomy to templates that keeps track of the theme to which a template belongs to, and whether it was originally created from a file.This PR simply adds a new column to the templates wp-admin list that shows the theme name (or its slug if the theme is not installed on the site anymore), and a message to clarify that it originated as a file.
Note
I don't have a good idea regarding the "file based" label.
The current
(Created from a template file)
label is a placeholder intended to start a discussion.How has this been tested?
Try activating different FSE themes, let them generate template posts from the provided files.
Open
/wp-admin/edit.php?post_type=wp_template
.Check the Theme column, and make sure it displays the correct informations.
Try creating a custom template from scratch, and make sure it's not labeled as "file based".
Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: