Skip to content

Links to the editor don't work for template and template parts revisions in the revisions screen #48065

@draganescu

Description

@draganescu

In #45215 the template and template part editors gained a button that links to the revisions screen for the edited template and template part.

The problem is that in the revisions screen there are two links that should link back to the editor which don't work (one with the template name and another one with the text "go to editor").

Screenshot 2023-02-14 at 12 17 19

In the post editor (block editor) going to the revisions screen will set these links to a shape of:

/wp-admin/post.php?post=3594&action=edit

In the template editor going to the revisions screen will set these links to a shape of:

/wp-admin/revision.php?revision=4068&gutenberg=true, which is the URI of the revisions screen itself.

This is a blocker for https://core.trac.wordpress.org/ticket/57704
There is a corresponding core ticket at https://core.trac.wordpress.org/ticket/57709

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Template Editing ModeRelated to the template editor available in the Block Editor[Priority] HighUsed to indicate top priority items that need quick attention[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions