WordPress.org

Make WordPress Core

Ticket #14897: 14897.5.diff

File 14897.5.diff, 1.2 KB (added by PeteMall, 9 years ago)

Add edit theme action links.

  • wp-admin/includes/list-table-ms-themes.php

     
    244244                                        $actions['network_disable'] = '<a href="' . wp_nonce_url('themes.php?action=network-disable&amp;theme=' . $theme_key . '&amp;paged=' . $page . '&amp;s=' . $s, 'disable-theme_' . $theme_key) . '" title="' . __('Disable this theme') . '">' . __('Disable') . '</a>';
    245245                        }
    246246                       
    247                         /* @todo link to theme editor   
    248247                        if ( current_user_can('edit_themes') )
    249                                 $actions['edit'] = '<a href="theme-editor.php?file=' . $theme['Stylesheet Files'][0] . '" title="' . __('Open this theme in the Theme Editor') . '" class="edit">' . __('Edit') . '</a>';
    250                         */
     248                                $actions['edit'] = '<a href="theme-editor.php?theme=' . $theme['Name'] . '" title="' . __('Open this theme in the Theme Editor') . '" class="edit">' . __('Edit') . '</a>';
    251249
    252250                        $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme_key, $theme, $context );
    253251                        $actions = apply_filters( "theme_action_links_$theme_key", $actions, $theme_key, $theme, $context );