[wp-trac] [WordPress Trac] #52353: Comments list's link should point to an actual article

WordPress Trac noreply at wordpress.org
Mon Feb 1 18:43:49 UTC 2021


#52353: Comments list's link should point to an actual article
---------------------------------------+-----------------------------
 Reporter:  trejder                    |       Owner:  SergeyBiryukov
     Type:  enhancement                |      Status:  reviewing
 Priority:  normal                     |   Milestone:  5.7
Component:  Comments                   |     Version:  trunk
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch has-screenshots  |     Focuses:  administration
---------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => reviewing


Comment:

 Thanks for the patch! I have a few concerns with the current iteration:

 * It doesn't seem to follow any of the existing design patterns in core.
 Generally, post titles in the in the admin link to the Edit Post screen.
 For links to the post on the front end, there is typically a "View Post"
 link.
 * It does not account for custom post types. Instead of using one of
 existing post type labels, it adds a new string, which cannot be
 customized.

 I would suggest following the pattern from the "In response to" column on
 the Comments screen:
 * The post title there links to the Edit Post screen.
 * Next to the title, there is a "View Post" link with a `view_item` post
 type label.

 See [attachment:"52353.2.diff"] and [attachment:"52353.2.png"].

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


More information about the wp-trac mailing list