[wp-trac] [WordPress Trac] #57634: Hide "view" link from Post List Table if empty string passed to post_link

WordPress Trac noreply at wordpress.org
Sat Feb 4 18:48:02 UTC 2023


#57634: Hide "view" link from Post List Table if empty string passed to post_link
-------------------------------+-----------------------------
 Reporter:  uzumymw            |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  1.5
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 As in [https://core.trac.wordpress.org/ticket/54824 54824] also in Post
 List Tables an empty string passed to `post_link` should hide "view" link.

 Actually link is just empty:

 {{{
 <span class="view"><a href="" rel="bookmark" aria-label="View
 “Test”">View</a></span>
 }}}

 In my opinion "view" link should be removed if permalink is empty.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57634>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list