Opened 3 years ago
Closed 3 years ago
#55252 closed defect (bug) (fixed)
Change permalink on media items opens in new window
Reported by: | kebbet | Owned by: | joedolson |
---|---|---|---|
Milestone: | 6.0 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | General | Keywords: | has-patch has-screenshots commit |
Focuses: | ui, accessibility, ui-copy | Cc: |
Description
The ”Change Permalink”-link (styled as a button) on the ”Edit media” screen opens in a new window/tab. I think it should open in the same window/tab.
The button message should also be clearer about what it changes, i propose ”Change Permalink structure”.
PR at GitHub is on its way.
Attachments (3)
Change History (16)
This ticket was mentioned in PR #2355 on WordPress/wordpress-develop by kebbet.
3 years ago
#1
- Keywords has-patch added; needs-patch removed
#2
@
3 years ago
Introduced in https://core.trac.wordpress.org/changeset/10458
#4
@
3 years ago
- Milestone changed from Awaiting Review to 6.0
- Owner set to joedolson
- Status changed from new to accepted
Testing:
- Go to Settings > Permalinks and configure permalinks as 'Plain'
- Go to Media, open a media item, navigate to 'Edit more details'
- Check button text & behavior.
This is a good candidate for 6.0.
#5
@
3 years ago
Note: If your Media Library is in List mode, opening the media item (with the 'Edit' link) should take you directly to the Edit Media screen. In Grid mode, however, you would need to find the 'Edit more details' link in the side panel of the 'Attachment details' dialog.
#6
@
3 years ago
I thought the target
might be there to prevent losing unsaved changes, but the permalink link next to it already opens in the same tab.
The 'Change Permalinks' link can also appear in the Classic post editor, with the same Plain permalinks setting active.
#7
@
3 years ago
Nice find, I did not remember to check the classic post editor.
All other buttons opens in same tab and make you loose changes (except Update/Publish, which saves changes).
#9
follow-up:
↓ 10
@
3 years ago
Regarding the copy change - while WordPress is definitely not very consistent about capitalization in buttons, this should definitely *either* be initial caps are title caps: Change permalink structure
or Change Permalink Structure
. I'd root for the latter.
I do think that the text change is clearer. I suspect that the target=_blank is in some ways associated with the text used - 'Change Permalink' gives the impression that it's a button that will execute a change to the permalink for this post/media item. 'Change Permalink Structure' makes it clearer that you're making a larger, global change.
Thinking historically, I'd guess that this was a problem prior to WordPress 4.2, when WordPress switched to using search engine friendly permalinks by default.
#10
in reply to:
↑ 9
@
3 years ago
Replying to joedolson:
Regarding the copy change - while WordPress is definitely not very consistent about capitalization in buttons, this should definitely *either* be initial caps are title caps:
Change permalink structure
orChange Permalink Structure
. I'd root for the latter.
I do think that the text change is clearer. I suspect that the target=_blank is in some ways associated with the text used - 'Change Permalink' gives the impression that it's a button that will execute a change to the permalink for this post/media item. 'Change Permalink Structure' makes it clearer that you're making a larger, global change.
Thinking historically, I'd guess that this was a problem prior to WordPress 4.2, when WordPress switched to using search engine friendly permalinks by default.
As a non native US-english speaker/reader, the capitalization thing is a mystery to me. That said, I've updated the patch to all caps now. :)
#11
@
3 years ago
- Component changed from Media to Permalinks
- Keywords commit added; needs-copy-review removed
I think the copy changes are good; changing component from Media to Permalinks since this link appears in multiple contexts.
https://core.trac.wordpress.org/ticket/55252