X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/41578db67d72562346e4dbb2a14889b23d522813..1132430022383fdf47fa6cb9377300fd885297aa:/wp-admin/theme-editor.php diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 382e594a..d0ecee48 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -81,7 +81,7 @@ case 'update': $newcontent = wp_unslash( $_POST['newcontent'] ); $location = 'theme-editor.php?file=' . urlencode( $relative_file ) . '&theme=' . urlencode( $stylesheet ) . '&scrollto=' . $scrollto; if ( is_writeable( $file ) ) { - //is_writable() not always reliable, check return value. see comments @ http://uk.php.net/is_writable + // is_writable() not always reliable, check return value. see comments @ http://uk.php.net/is_writable $f = fopen( $file, 'w+' ); if ( $f !== false ) { fwrite( $f, $newcontent ); @@ -92,7 +92,6 @@ case 'update': } wp_redirect( $location ); exit; -break; default: @@ -122,8 +121,7 @@ default: $content = esc_textarea( $content ); } - ?> - + if ( isset( $_GET['updated'] ) ) : ?>