Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#55373 closed enhancement (fixed)

Attachment template: Rename from "Media" to "Attachment"

Reported by: scruffian Owned by: davidbaumwald
Priority: normal Milestone: 6.0
Component: Editor Version: 5.9
Severity: normal Keywords: commit needs-user-docs
Cc: Focuses:

Description

This came up in ​https://github.com/WordPress/gutenberg/pull/39353.

Theme Authors might find the name "Attachment" easier to understand because of how it relates to the template hierarchy.

Attachments (3)

patch.diff​ (1.9 KB ) - added by scruffian 5 years ago.
Text change
patch.2.diff​ (559 bytes ) - added by scruffian 5 years ago.
Remove unconnected changed
55373-before-after.jpg​ (21.5 KB ) - added by costdev 5 years ago.
Before and after patch.2.diff

Download all attachments as: .zip

Change History (10)

@scruffian
5 years ago

Text change

@scruffian
5 years ago

Remove unconnected changed

#1 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review → 6.0

#2 @costdev
5 years ago

  • Keywords commit added
  • Version → 5.9

This makes sense to me.

This was the only key in the array whose value differed, and this also fits with the established "Attachment" page terminology (attachment.php, "View attachment page", linking to "Attachment Page", etc).

The description states "media items or attachments", so this doesn't deviate from the description and, in fact, simply chooses the descriptor that is more commonly used in the context of templates.

Tested the patch and it works as expected.

Unless there are objections / additional strings to update, this is a reasonable and straightforward change. Marking for commit consideration.

@costdev
5 years ago

Before and after patch.2.diff

#3 @davidbaumwald
5 years ago

  • Owner set to davidbaumwald
  • Status assigned → accepted

#4 @davidbaumwald
5 years ago

  • Resolution → fixed
  • Status accepted → closed

In 52923:

Site Editor: Rename the default attachment template from "Media" to "Attachment".

Follow-up to [52062].

Props scruffian, costdev.
Fixes #55373.

#5 @azouamauriac
5 years ago

this one should be reported upstream, isn't?

#6 @milana_cap
5 years ago

  • Keywords needs-codex added

#7 @dd32
5 years ago

  • Keywords needs-user-docs added; needs-codex removed
Note: See TracTickets for help on using tickets.