[wp-trac] [WordPress Trac] #57913: Attachment pages need to have an "on" toggle

WordPress Trac noreply at wordpress.org
Mon Mar 13 13:29:07 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:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 WordPress creates attachment pages by default for every attachment
 uploaded. On the *vast* majority of sites, these attachment pages are
 useless. They do however exist, and get crawled, and sometimes even rank
 in search results, leading to bad results for users and site owners. I
 want to propose we get rid of them.

 Since attachment pages *are* in use on a minority of sites, this needs a
 bit of a path forward. My proposed solution:

 * We should create a toggle in WordPress core that enables them, and
 toggle that toggle "off" by default for new sites.
 * On existing sites that toggle should be "on", but setting it to "off"
 should disable the attachment URLs entirely, redirecting existing
 attachment URLs to their parent post.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57913>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list