X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/d3b1ea255664edd2deef17f900a655613d20820d..refs/tags/wordpress-2.8.2:/wp-admin/theme-editor.php diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index db79d786..c7343a7a 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -22,8 +22,7 @@ if (empty($theme)) { $theme = get_current_theme(); } else { $theme = stripslashes($theme); - } - +} if ( ! isset($themes[$theme]) ) wp_die(__('The requested theme does not exist.')); @@ -65,8 +64,8 @@ case 'update': } $location = wp_kses_no_null($location); - $strip = array('%0d', '%0a'); - $location = str_replace($strip, '', $location); + $strip = array('%0d', '%0a', '%0D', '%0A'); + $location = _deep_replace($strip, $location); header("Location: $location"); exit(); @@ -77,9 +76,6 @@ default: if ( !current_user_can('edit_themes') ) wp_die('
'.__('You do not have sufficient permissions to edit themes for this blog.').'
'); - if ( use_codepress() ) - wp_enqueue_script( 'codepress' ); - require_once('admin-header.php'); update_recently_edited($file); @@ -117,8 +113,13 @@ $desc_header = ( $description != $file_show ) ? "$description (