X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/256a3b381f63716209b3527d0a14442ae570c283..1132430022383fdf47fa6cb9377300fd885297aa:/wp-admin/theme-editor.php diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 8d1775d4..d0ecee48 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -40,7 +40,7 @@ get_current_screen()->set_help_sidebar( '

' . __('Documentation on Using Themes') . '

' . '

' . __('Documentation on Editing Files') . '

' . '

' . __('Documentation on Template Tags') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Support Forums') . '

' ); wp_reset_vars( array( 'action', 'error', 'file', 'theme' ) ); @@ -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'] ) ) : ?>