-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Template inspector: Surface revisions panel #44503
Comments
This was already requested at #36060 |
This is a quick win given revisions are already enabled just not exposed. A link to the revisions interface would provide a lot of value. |
Should revisions be shown in during Template Editing Mode in the Post Editor? That might be a bit less direct than just adding revisions to the Site Editor sidebar, as during Template Editing Mode, the hidden sidebar belongs to the post context. |
It should be added on the template tab, whenever that is displayed. |
I'll take a look at this one |
It looks like the REST API is not returning links to the previous revisions of template parts, so we will have to add that before we can add this button. I'm looking into adding that |
This is mostly ready to go, but is blocked by a bug in the REST routes for template revisions. The CSS on #45215 could use some cleanup, though. |
Just checking in on the progress of this? Having these revisions surfaced in the Inspector would be fantastic! |
@draganescu @georgeh @priethor @ramonjd @Mamaduka Core patch is ready and needs code review before it get merged in WP 6.4 beta 3. Please can a look and test! |
Templates and template parts support revisions. We should surface these in the inspector for Templates and Template Parts, especially because those inspectors are already so empty.
It could be surfaced in the same way as it is in the post editor, just as a link to the revisions page:
The text was updated successfully, but these errors were encountered: