Description
Description
6.4 brought us the ability to disable Attachment Pages (and new sites are created without them).
However, even when Attachment Pages are disabled, the core/file block shows the possibility to link to the attachment page instead of the file url.
I don't recall having see this setting on previous installations. Is it something new?
Step-by-step reproduction instructions
- Go to the Gutenberg editor (WP 6.8.2)
- Check that the setting
wp_options.wp_attachment_pages_enabled = 0 (default since 6.4)
- Add a file block
- Settings on the right sidebar show the "attachment page" as a potential href
Screenshots, screen recording, code snippet
No response
Environment info
- WP version 6.8.2 (latest)
- Native Gutenberg
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.