Make WordPress Core

Changeset 17177


Ignore:
Timestamp:
12/30/2010 04:09:01 PM (14 years ago)
Author:
markjaquith
Message:

urlencode() theme name when creating theme edit link. props tomthewebmaster. fixes #16028

File:
1 edited

Legend:

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

    r17130 r17177  
    285285
    286286        if ( current_user_can('edit_themes') )
    287             $actions['edit'] = '<a href="' . esc_url('theme-editor.php?theme=' . $theme['Name'] ) . '" title="' . esc_attr__('Open this theme in the Theme Editor') . '" class="edit">' . __('Edit') . '</a>';
     287            $actions['edit'] = '<a href="' . esc_url('theme-editor.php?theme=' . urlencode( $theme['Name'] )) . '" title="' . esc_attr__('Open this theme in the Theme Editor') . '" class="edit">' . __('Edit') . '</a>';
    288288
    289289        if ( empty( $theme['enabled'] ) && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $theme_key != get_option( 'stylesheet' ) && $theme_key != get_option( 'template' ) )
Note: See TracChangeset for help on using the changeset viewer.