WordPress.org

Make WordPress Core

Ticket #7856: after_row_patch.diff

File after_row_patch.diff, 838 bytes (added by strider72, 7 years ago)

New patch = old patch plus after_plugin_row_{$plugin} filter. Two birds with one stone?

  • wp-admin/plugins.php

     
    309309                        $action_links[] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>'; 
    310310 
    311311                $action_links = apply_filters('plugin_action_links', $action_links, $plugin_file, $plugin_data, $context); 
     312                $action_links = apply_filters("plugin_action_links_$plugin_file", $action_links, $plugin_data, $context); 
    312313 
    313314                echo " 
    314315        <tr class='$context'> 
     
    322323                echo '</td> 
    323324        </tr>'; 
    324325                do_action( 'after_plugin_row', $plugin_file, $plugin_data, $context ); 
     326                do_action( "after_plugin_row_$plugin_file", $plugin_data, $context ); 
    325327        } 
    326328?> 
    327329        </tbody>