[wp-trac] [WordPress Trac] #54824: Hide "view" link from Media Library List Mode if empty string passed to attachment_link

WordPress Trac noreply at wordpress.org
Fri Feb 3 21:43:40 UTC 2023


#54824: Hide "view" link from Media Library List Mode if empty string passed to
attachment_link
--------------------------+----------------------------
 Reporter:  oh_hello      |       Owner:  joedolson
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  6.2
Component:  Media         |     Version:  5.6
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  accessibility
--------------------------+----------------------------
Changes (by joedolson):

 * keywords:  has-patch needs-testing => has-patch


Comment:

 Tested by adding filter


 {{{
 add_filter( 'attachment_link', function() use ($link) {
      return '';
 });
 }}}

 Before patch: view link present, empty URL.

 After patch: no view link.

 Screenshots coming.

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


More information about the wp-trac mailing list