Make WordPress Core

Ticket #12801: 12801.patch

File 12801.patch, 1.1 KB (added by stephanethomas, 12 years ago)
  • wp-admin/includes/class-wp-plugins-list-table.php

     
    305305
    306306                // preorder
    307307                $actions = array(
     308                        'info' => '',
    308309                        'deactivate' => '',
    309310                        'activate' => '',
    310311                        'edit' => '',
     
    336337                        else
    337338                                $is_active = is_plugin_active( $plugin_file );
    338339
     340                        include_once ( ABSPATH . 'wp-admin/includes/plugin-install.php' );
     341                       
     342                        $api = plugins_api('plugin_information', array( "slug" => wp_unslash(plugin_dir_path($plugin_file))) );
     343                        $actions['info'] = '<a href="' . self_admin_url( 'plugin-install.php?tab=plugin-information&amp;plugin=' . $api->slug . '&amp;TB_iframe=true&amp;width=600&amp;height=550' ) . '" class="thickbox" title="' .esc_attr( sprintf( __( 'More information about %s' ), $plugin_data['Name'] ) ) . '">' . __( 'Info' ) . '</a>';
     344                       
    339345                        if ( $screen->in_admin( 'network' ) ) {
    340346                                if ( $is_active ) {
    341347                                        if ( current_user_can( 'manage_network_plugins' ) )