Changeset 8208
- Timestamp:
- 06/27/08 20:14:50 (4 months ago)
- Files:
-
- trunk/wp-admin/theme-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/theme-editor.php
r7979 r8208 44 44 $theme = urlencode($theme); 45 45 if (is_writeable($real_file)) { 46 //is_writable() not always reliable, check return value. see comments @ http://uk.php.net/is_writable 46 47 $f = fopen($real_file, 'w+'); 47 fwrite($f, $newcontent); 48 fclose($f); 49 $location = "theme-editor.php?file=$file&theme=$theme&a=te"; 48 if ($f !== FALSE) { 49 fwrite($f, $newcontent); 50 fclose($f); 51 $location = "theme-editor.php?file=$file&theme=$theme&a=te"; 52 } else { 53 $location = "theme-editor.php?file=$file&theme=$theme"; 54 } 50 55 } else { 51 56 $location = "theme-editor.php?file=$file&theme=$theme";
