Make WordPress Core

Ticket #15850: 15850.diff

File 15850.diff, 1.1 KB (added by PeteMall, 13 years ago)

Introduce network_admin_plugin_action_links

  • wp-admin/includes/class-wp-plugins-list-table.php

     
    380380                                $actions['edit'] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>';
    381381                } // end if $context
    382382
    383                 $actions = apply_filters( 'plugin_action_links', array_filter( $actions ), $plugin_file, $plugin_data, $context );
    384                 $actions = apply_filters( "plugin_action_links_$plugin_file", $actions, $plugin_file, $plugin_data, $context );
     383                $prefix = $screen->is_network ? 'network_admin_' : '';
     384                $actions = apply_filters( $prefix . 'plugin_action_links', array_filter( $actions ), $plugin_file, $plugin_data, $context );
     385                $actions = apply_filters( $prefix . "plugin_action_links_$plugin_file", $actions, $plugin_file, $plugin_data, $context );
    385386
    386387                $class = $is_active ? 'active' : 'inactive';
    387388                $checkbox_id = md5($plugin_data['Name']) . "_checkbox";