[wp-trac] [WordPress Trac] #57709: Links to the editor don't work for template and template parts revisions in the revisions screen
WordPress Trac
noreply at wordpress.org
Tue Feb 14 16:51:31 UTC 2023
#57709: Links to the editor don't work for template and template parts revisions in
the revisions screen
--------------------------+---------------------
Reporter: andraganescu | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Revisions | Version:
Severity: blocker | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------
Changes (by andraganescu):
* milestone: 6.2 => 6.3
Comment:
Hi @audrasjb
I’ve looked into this and:
- the links are wrong because template and template part CPTs do not have
the internal `_edit_link` set when they get registered
- the shape of an `_edit_link` is completely different from that of posts
or pages - for example `site-
editor.php?postId=twentytwentythree//header&action=edit&canvas=edit&path
=/template-parts/single&postType=wp_template_part`
- `get_edit_post_link` needs some multiple lines to accommodate this
This is hardly justified to rush and has the potential to break WP admin
:)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57709#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list