[wp-trac] [WordPress Trac] #48325: Additional filter in media-template.php. Let developers to hide attachment page link.
WordPress Trac
noreply at wordpress.org
Tue Sep 1 08:06:47 UTC 2020
#48325: Additional filter in media-template.php. Let developers to hide attachment
page link.
------------------------------------+-----------------------------
Reporter: limera1n | Owner: (none)
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: ui
------------------------------------+-----------------------------
Comment (by Mista-Flo):
Arg forgot to check if an existing filter was in the PHP side. Good catch
thank you Garret. So IMO, it doesn’t make sense to add a new filter in the
template. But what we can do is to keep a check if data.link so that empty
strings won't be displayed if the user want to use the filter you
mentioned. This is my proposed patch (6th).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48325#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list