I had a problem with a few blogs giving me this error when I try to edit themes from within the wordpress theme editor
"Sorry, that file cannot be edited"
Anyway, here's the fix I found.
http://wordpress.org/support/topic/344250#post-1507273
"Sorry, that file cannot be edited"
Anyway, here's the fix I found.
http://wordpress.org/support/topic/344250#post-1507273
edited "theme-editor.php" at line ~173 and ~191
this line part of generating theme files list and adding bad link to each. So i add string with part of url was missing.
for finding what URL part you missing, just use "Update" button in editor, then look at adress bar and diff with theme file link in sidebar.
this line part of generating theme files list and adding bad link to each. So i add string with part of url was missing.
Code:
<li><a href="theme-editor.php?file=<?php echo "/xxx/xxx/xxx/wp-content".$template_file; ?>&theme=<?php echo urlencode($theme) ?>&dir=theme"><?php echo $filedesc ?></a></li>


Comment