WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 23 months ago

#38169 closed enhancement (fixed)

Remove the "edit" link from each plugin row on the Plugins screen

Reported by: johnbillion Owned by: johnbillion
Milestone: 4.9 Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch needs-docs
Focuses: administration, multisite Cc:

Description

Some very unscientific user testing last week led me to notice an inexperienced user who clicked the Edit link next to a plugin when they were looking for its settings panel. They subsequently spent around a minute on this screen before deciding that they weren't in the right place.

Should the Edit link in each plugin row be removed? It will reduce clutter on the Plugins screen, and the plugin and theme editors are still available from their respective Editor menus.

One disadvantage is the lack of visibility of the plugin editor which is a potential springboard for getting users into development (one of the arguments against removing the editors completely).

Note that the Themes screen no longer shows an Edit link anywhere since 3.8.

Attachments (1)

38169.patch (3.8 KB) - added by johnbillion 23 months ago.

Download all attachments as: .zip

Change History (13)

#1 @wbcomdesigns
3 years ago

Hi @johnbillion

For your site specific
You can add following codes inside Child Theme's function.php

add_filter('plugin_action_links', 'disable_plugin_edit', 10, 4);

function disable_plugin_edit($actions, $plugin_file, $plugin_data, $context) {
    // Remove edit link for all
    if (array_key_exists('edit', $actions)) {
        unset($actions['edit']);
    }
    return $actions;
}

#2 @afercia
3 years ago

+1
@johnbillion or you could also consider to remove it from your site with that filter 😆

#3 @DrewAPicture
3 years ago

+1 for removing the edit links for plugins.

#4 @subharanjan
3 years ago

+1 for removing the edit link from plugins listing screen.

#5 @dd32
3 years ago

I don't personally see the edit functionality as being useful to the majority of WordPress users, so also agree that it's removal (and from Themes if it's there, but i'm fairly sure it's not) would be a better UX for the majority of users.

#6 @johnbillion
23 months ago

  • Keywords needs-patch added; ux-feedback removed
  • Milestone changed from Awaiting Review to 4.9

Let's do this.

@johnbillion
23 months ago

#7 @johnbillion
23 months ago

  • Focuses multisite added
  • Keywords has-patch added; needs-patch removed
  • Owner set to johnbillion
  • Status changed from new to accepted

38169.patch removes the Edit link from everywhere that they're present for plugins and themes:

  • The Plugins screen
  • The Plugins screen in Network Admin
  • The Themes screen in Network Admin
  • The Themes tab when editing a site in Network Admin
Last edited 23 months ago by johnbillion (previous) (diff)

#8 @afercia
23 months ago

+1 from me.

#9 @johnbillion
23 months ago

  • Component changed from Plugins to Administration

#10 @johnbillion
23 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 41160:

Administration: Remove Edit links from all plugin listing screens and the remaining theme listing screens.

This simplifies these list tables, reducing user confusion, without removing functionality.

Fixes #38169

#11 @DrewAPicture
23 months ago

  • Keywords needs-docs added
  • Resolution fixed deleted
  • Status changed from closed to reopened

Can we get changelog entries on the DocBlocks for the theme_action_links and network_admin_plugin_action_links filters? I think anybody expecting the 'edit' values to be there are going to come looking and it would be good to document the change.

#12 @johnbillion
23 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 41231:

Plugins: Correct and improve docblocks for the various plugin_action_links filters on the Plugins screen.

This also adds a changelog for the removal of the Edit links in [41160].

See #41017
Fixes #38169

Note: See TracTickets for help on using tickets.