[wp-trac] [WordPress Trac] #61554: Attachment page not redirecting to attachment file even after setting the option in wp-admin/options.php
WordPress Trac
noreply at wordpress.org
Wed Jul 3 10:22:40 UTC 2024
#61554: Attachment page not redirecting to attachment file even after setting the
option in wp-admin/options.php
-------------------------------------------------+-------------------------
Reporter: beingbaban | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Media | Version: 6.5.5
Severity: normal | Resolution:
Keywords: reporter-feedback needs-testing- | Focuses:
info |
-------------------------------------------------+-------------------------
Comment (by beingbaban):
Thank you for getting back.
Here are the steps.
On fresh wordpress site, Permalink structure set to plain under
website.com/wp-admin/options-permalink.php.
Upload any image to any page.
Now, again goto website.com/wp-admin/options-permalink.php set structure
to postname. Upload a photo.
We now have two photos, one with old permalink structure i.e.
website.com/?attachment_id=101 and one with new website.com/photofile
Next, goto website.com/wp-admin/options.php and set
wp_attachment_pages_enabled to 0.
Open website.com/?attachment_id=101, it will open as it is with comments
box open.
and if we open the second attachment page i.e. website.com/photofile, it
will redirect to website.com/photofile.png instead of opening attachment
page.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61554#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list