Make WordPress Core

Changeset 20314


Ignore:
Timestamp:
03/29/2012 03:34:51 AM (13 years ago)
Author:
nacin
Message:

urldecode() the incoming $file in the theme editor. see [20313] when the encode was added. see #2994 for the original bug report. see #20103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r20313 r20314  
    4646
    4747if ( $theme )
    48     $stylesheet = $theme;
     48    $stylesheet = urldecode( $theme );
    4949else
    5050    $stylesheet = get_stylesheet();
     
    7474    }
    7575} else {
    76     $relative_file = stripslashes( $file );
     76    $relative_file = urldecode( stripslashes( $file ) );
    7777    $file = $theme->get_stylesheet_directory() . '/' . $relative_file;
    7878}
Note: See TracChangeset for help on using the changeset viewer.