[wp-trac] [WordPress Trac] #50312: Add View Post link to Admin Bar of Edit Comments page when viewing comments for a single post.

WordPress Trac noreply at wordpress.org
Wed Jun 3 19:55:22 UTC 2020


#50312: Add View Post link to Admin Bar of Edit Comments page when viewing comments
for a single post.
-------------------------+-----------------------------
 Reporter:  Otto42       |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  reviewing
 Priority:  normal       |   Milestone:  5.5
Component:  Toolbar      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  administration
-------------------------+-----------------------------

Comment (by SergeyBiryukov):

 [attachment:"50312.diff"] is a good start, but there is an existing code
 for displaying the "View Post" link that respects the post type object's
 `public` and `show_in_admin_bar` properties, as well as the post status.
 So it seems better to reuse that existing code instead of duplicating it.
 Commit incoming.

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


More information about the wp-trac mailing list