WordPress.org

Make WordPress Core

Changeset 16140


Ignore:
Timestamp:
11/01/2010 07:14:03 PM (9 years ago)
Author:
ryan
Message:

Add edit theme links. Props PeteMall. see #14897

File:
1 edited

Legend:

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

    r16128 r16140  
    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 );
Note: See TracChangeset for help on using the changeset viewer.