Make WordPress Core


Ignore:
Timestamp:
12/16/2010 07:22:46 PM (14 years ago)
Author:
PeteMall
Message:

New filter for network admin plugins action link. Fixes #15850.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-plugins-list-table.php

    r16992 r17004  
    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';
Note: See TracChangeset for help on using the changeset viewer.