[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
Wed May 10 17:34:28 UTC 2023


#57709: Links to the editor don't work for template and template parts revisions in
the revisions screen
-------------------------------------------+----------------------------
 Reporter:  andraganescu                   |       Owner:  davidbaumwald
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:  6.3
Component:  Revisions                      |     Version:
 Severity:  blocker                        |  Resolution:  fixed
 Keywords:  has-patch dev-reviewed commit  |     Focuses:  ui
-------------------------------------------+----------------------------
Changes (by davidbaumwald):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55743" 55743]:
 {{{
 #!CommitTicketReference repository="" revision="55743"
 Revisions: Add edit link functionality for the `wp_template` and
 `wp_template_part` post types.

 In preparation for viewing revisions of templates and template parts in
 the editor, this set changes adds the `_edit_link` argument when
 registering the `wp_template` and `wp_template_part` post types.  This
 commit also updates `get_edit_post_link` to account for the unique edit
 URLs for these post types.

 Finally, this commit also adds new unit tests for the `get_edit_post_link`
 function, including tests for the `post`, `wp_template`, and
 `wp_template_part` post types.

 Fixes #57709.
 Props andraganescu, spacedmonkey, antonvlasenko, youknowriad, ramonopoly,
 ironprogrammer, annezazu.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57709#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list