[wp-trac] [WordPress Trac] #57913: Attachment pages need to have an "on" toggle
WordPress Trac
noreply at wordpress.org
Wed Mar 15 22:09:43 UTC 2023
#57913: Attachment pages need to have an "on" toggle
-------------------------+------------------------------
Reporter: joostdevalk | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Comment (by azaozz):
Replying to [comment:3 johnbillion]:
> I've built websites for photographers in the past using mostly just
attachment templates
> It might be reasonable to provide support for this through
add_theme_support()
+1. Thinking themes should be able to use attachment templates if they
want to.
> Regarding redirection, I think it’s better to redirect attachment page
to the direct media file URL.
Also +1. Thinking this would be the correct behavior. This can also check
the "visibility" cap of the current user and output a 404 if the user
cannot "see" the attachment post.
> Should such a toggle be on the Permalinks screen? Seems like the ideal
place.
Not sure if this should be another checkbox in the WP settings. Perhaps
seems "too advanced" for most users to make a decision? Imho better to
have the functionality in WP but let the theme decide either to enable or
disable or to add a checkbox in the theme's settings.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57913#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list