Skip to content
September 24, 2025

Free Websites, share News and Posts publicly

Primary Menu
  • Registration free websites/as writer
  • Login
Live
  • Home
  • [New post] WordPress 6.4 Disables Attachment Pages for New Installations
  • news

[New post] WordPress 6.4 Disables Attachment Pages for New Installations

alisa October 27, 2023 3 min read
Site logo image Sarah Gooding posted: ” The upcoming 6.4 release, expected on November 7, will disable attachment pages for new installations. Up until now, WordPress automatically created attachment pages when users upload a file through the media upload system. It has been treated as a speci” WP Tavern

WordPress 6.4 Disables Attachment Pages for New Installations

0bce5db7a60aebfe02859e1f166195737a6a823d6aaa45dfaccc668744d804d0?s=96&d=retro&r=R

Sarah Gooding

Oct 27

The upcoming 6.4 release, expected on November 7, will disable attachment pages for new installations. Up until now, WordPress automatically created attachment pages when users upload a file through the media upload system. It has been treated as a special post type that holds information about the file and each attachment is accessible under its own URL. SEO plugins have been redirecting attachment pages for years, as they rarely have any significant purpose.

“Until WordPress 6.4 was released, WordPress created attachment pages by default for every attachment uploaded,” WordPress contributor Joost de Valk said in the dev note for this change. “On the vast majority of sites, these attachment pages don’t add any meaningful information. They do, however, exist, get indexed by search engines, and sometimes even rank in search results, leading to bad results for users and site owners.”

There will be no changes to existing sites. They will continue to work as they always have, but new sites will have their attachment pages redirected to the attachment URL. Site admins who want to enable or disable attachment pages can use the new  wp_attachment_pages_enabled database option to control attachment pages’ behavior.

There is no interface for changing whether a site disables attachment pages, which was somewhat controversial in the comments on the Trac ticket and the dev note.

“In light of the WordPress mantra ‘decisions, not options,’ we’ve decided against making a setting for this,” de Valk said.

WordPress plugin developer Sybre Waaijer mades a case for giving users an option with an interface for toggling it on or off:

The problem with filtering options is that when another plugin provides the option toggle, the option filter will go against user expectations.

This is where “decisions, not options” becomes paradoxical because we’re now deciding to set an option while also not giving the option.

So, as plugins fill in this gap, then A) where will plugins put the option (likely on their custom page instead of options-media.php), and B) of the dozens of types of plugins that are in the market to juggle this, who will ultimately be in control of the option?

If it’s a filter, each plugin promises to set a toggle via a simple condition. But since it’s an option, plugins can add an option to filter an option and add an option to toggle the option. It’ll become a source of bugs because of the logical biconditionals (XNOR).

While an interface isn’t in the cards for WordPress 6.4, and may never be back on the table for consideration, contributors are discussing the possibility of putting this in a core plugin.

“Should we not have a core plugin for re-enabling attachment pages on new sites?” Automattic-sponsored contributor Justin Tadlock said. “If there’s not going to be a UI for this, then a plugin that’s not buried in a Trac ticket would be ideal.”

de Valk agreed this would be a good idea to have a plugin that simply adds a setting to the Options -> Media page. Users likely will not understand the purpose of attachment pages unless they are looking to enable them for a specific, niche use case. A plugin like this would be useful for those who are not able to write the code to change attachment pages’ behavior, as described in the dev note.

Comment

Manage your email settings or unsubscribe.

Trouble clicking? Copy and paste this URL into your browser:
https://wptavern.com/wordpress-6-4-disables-attachment-pages-for-new-installations

WordPress.com and Jetpack Logos

Get the Jetpack app to use Reader anywhere, anytime

Follow your favorite sites, save posts to read later, and get real-time notifications for likes and comments.

Download Jetpack on Google Play Download Jetpack from the App Store
WordPress.com on Twitter WordPress.com on Facebook WordPress.com on Instagram WordPress.com on YouTube
WordPress.com Logo and Wordmark title=

Automattic, Inc. – 60 29th St. #343, San Francisco, CA 94110  

t.gif?has featured image=0&subscriber id=530390941& ui=8ba62ef4a9e9a49d3fe3da3d5a99ce4d& ut=anon&email domain=gmail.com&blog id=9006382&post id=150736&user email=gjjtuyu768%40gmail.com&date sent=2023 10 27&email id=cd4da8e02c1c54c48dcce5501d333d74&email name=new post&template=new post& en=wpcom email open&browser type=php agent& aua=wpcom tracks client v0 b.gif?blog=9006382&post=150736&subd=wptavern.com&ref=&email=1&email o=jetpack&host=wptavern

Chat read-only to anonymous users. Chat with Anyone and Anywhere. Only registered users are allowed to send messages.
Loading the chat ...
118959 Register Login

Continue Reading

Previous: Migration: Germany to deport rejected asylum seekers faster
Next: S&P 500 turns lower on Friday and is now in correction territory: Live updates

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

verde two
VERDE TWO Apartment sale
  • actress and actor
  • Afghanistan
  • airlines
  • amazon
  • America
  • android
  • apache
  • apple
  • Arab
  • australia
  • Australian Embassy
  • automotive
  • bahan bangunan
  • Bali island
  • Ban
  • banking
  • bearing
  • Brazil
  • Brunei Darussalam
  • business
  • canada
  • casino
  • China
  • cloud
  • cloudflare
  • cPanel
  • cruise
  • crypto currency
  • culture
  • currency
  • DNS
  • docker
  • eCommerce
  • economy
  • education
  • Email
  • Energy
  • england
  • entertainment
  • environment
  • Fashion
  • finance
  • Food
  • France
  • gaming
  • garden
  • Germany
  • golf
  • Golf indonesia
  • google
  • HarmonyOS
  • Health products
  • history
  • hospital
  • hotel restaurant
  • Huawei
  • human
  • IBM
  • IMF
  • india
  • Indonesia
  • instagram
  • internet
  • investment
  • Israel
  • Japan
  • jobs
  • kitchenware
  • korea
  • kubernetes
  • KVM
  • Leisure
  • limbah
  • Linux
  • Living style
  • Longhorn
  • lottery
  • machine
  • machine learning
  • machinery
  • Malaysia
  • manufacturing
  • mariadb
  • maritime
  • material building
  • medical
  • meta
  • Microsoft
  • music
  • MySQL
  • New Zealand
  • news
  • NFS
  • Nickel
  • nightclub
  • north korea
  • OBS
  • oil and gas
  • Pakistan
  • Palestine
  • Philippines
  • Photography
  • php
  • phpMyAdmin
  • private-jet
  • promotion products
  • real estate
  • Resort hotel
  • Russia
  • sanitary ware
  • search engine
  • Shopping Mal
  • singapore
  • Singapore Pools
  • software
  • south korea
  • sport
  • ssl
  • swiss
  • Technology
  • Thailand
  • tourism boards
  • travel
  • Turkish
  • Ubuntu
  • Uncategorized
  • United Arab Emirates
  • vietnam
  • virtualbox
  • virtualization
  • vmware
  • water products
  • whatsapp
  • WordPress
Register and posting news , your skills , knowledge , science , stories , experiences , etc
Copyright © All rights reserved. The tiatira is not responsible for the content of each writer / author , external sites. |