WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#22442 closed enhancement (wontfix)

Allow target="_blank" to plugins description from File Header

Reported by: themedios Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.4.2
Component: Plugins Keywords: has-patch
Focuses: Cc:

Description

It is noticed that target="_blank" does not work in the plugins description on the Installed Plugins page. If a user clicks on a link then it opens in the same tab.

Attached is the patch which allows to add the target attribute to the a element in plugins description

Attachments (1)

22442.diff (559 bytes) - added by themedios 3 years ago.
Diff file for adding target blank in plugins description

Download all attachments as: .zip

Change History (12)

@themedios3 years ago

Diff file for adding target blank in plugins description

comment:1 @themedios3 years ago

  • Version 3.4.2 deleted

comment:2 @themedios3 years ago

  • Version set to trunk

comment:3 follow-up: @SergeyBiryukov3 years ago

  • Version changed from trunk to 3.4.2

Version field indicates when the enhancement was initially suggested.

comment:4 in reply to: ↑ 3 @themedios3 years ago

Replying to SergeyBiryukov:

Version field indicates when the enhancement was initially suggested.

Thanks for the info Sergey. Actually, the diff file that I had made was after checking out the latest copy from the trunk. Hence, I was in the impression that the version field is when the enhancement shall be released.

Anyways, Thanks again!

comment:5 @toscho3 years ago

  • Cc info@… added

Please … no. Going back is much easier than closing a new forced tab. It would introduce an inconsistency without any benefit. Let’s keep the interface predictable. The user should decide how and where a link opens.

comment:6 @sabreuse3 years ago

-1 aside from the fact that it's generally a nasty trick to surprise the user, forcing new tabs/windows is awful for accessibility.

comment:7 @themedios3 years ago

Basically, this is only a matter of allowing the attribute. The plugin author will decide whether he wants to have the user to open any external links in a new window or not.

While developing a plugin recently, I noticed that I had put up a link to an external page in the description which has information on how to use the plugin. I gave it target _blank so that the user will be able to view the instructions and perform the steps on the dashboard side by side. But ofcourse this did not work. So the only option a user will have is to ctrl+click the link to open in a new tab or go back and forth.

Hence, just wanted to put this as a consideration.

Last edited 3 years ago by themedios (previous) (diff)

comment:8 @kovshenin3 years ago

-1 I don't like websites opening new tabs or windows, even search engines stopped doing that. Users are also getting smarter and holding the Cmd/Ctrl or Shift keys when they want a new tab or window. Also, on touch devices it's easier to swipe back than it is to close a new tab or window.

comment:9 @SergeyBiryukov3 years ago

  • Keywords close added

comment:10 @c3mdigital2 years ago

  • Keywords 2nd-opinion close removed
  • Resolution set to wontfix
  • Status changed from new to closed

Users should always be able to control where new links open.

comment:11 @SergeyBiryukov2 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.