Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#38169 closed enhancement (fixed)

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

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile 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 7 years ago.

Download all attachments as: .zip

Change History (13)

#1 @wbcomdesigns
7 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
7 years ago

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

#3 @DrewAPicture
7 years ago

+1 for removing the edit links for plugins.

#4 @subharanjan
7 years ago

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

#5 @dd32
7 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
7 years ago

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

Let's do this.

@johnbillion
7 years ago

#7 @johnbillion
7 years 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 7 years ago by johnbillion (previous) (diff)

#8 @afercia
7 years ago

+1 from me.

#9 @johnbillion
7 years ago

  • Component changed from Plugins to Administration

#10 @johnbillion
7 years 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
7 years 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
7 years 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.