WordPress.org

Make WordPress Core

Changeset 13874


Ignore:
Timestamp:
03/29/10 07:23:29 (4 years ago)
Author:
dd32
Message:

Restore Edit link for active plugins. Whitespace & if end markers. Also removed a non-needed bool check. Fixes #12741

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r13868 r13874  
    561561                else 
    562562                    $actions[] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin') . '" class="edit">' . __('Activate') . '</a>'; 
     563 
    563564                if ( is_multisite() && is_super_admin() ) 
    564565                    $actions[] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;networkwide=1&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin for all sites in this network') . '" class="edit">' . __('Network Activate') . '</a>'; 
    565566 
    566                 if ( !is_multisite() && current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) ) 
    567                     $actions[] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>'; 
    568  
    569                 if ( ! $is_active && current_user_can('delete_plugins') ) 
     567                if ( current_user_can('delete_plugins') ) 
    570568                    $actions[] = '<a href="' . wp_nonce_url('plugins.php?action=delete-selected&amp;checked[]=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page, 'bulk-manage-plugins') . '" title="' . __('Delete this plugin') . '" class="delete">' . __('Delete') . '</a>'; 
    571             } 
    572         } 
     569            } // end if $is_active 
     570 
     571            if ( current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) ) 
     572                $actions[] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>'; 
     573        } // end if $context 
    573574 
    574575        $actions = apply_filters( 'plugin_action_links', $actions, $plugin_file, $plugin_data, $context ); 
Note: See TracChangeset for help on using the changeset viewer.