If you are using Thesis WordPress theme, and upgrading to the new WordPress 3.0, be prepared for some use_codepress fatal errors when using custom file editor on your blog admin.
Thesis Theme Custom File Editor Use_CodePress Error
If you are using the Thesis theme’s built-in Custom File Editor, you might spot PHP error messages like this:
Fatal error: Call to undefined function use_codepress() in /DIRECTORY/public_html/wp-content/themes/thesis_17/lib/admin/admin.php on line 42
The reason is Thesis theme calls on the function use_codepress – from the Thesis core file admin.php for syntax highlighting using CodePress, but the use_codepress function is now deprecated in WordPress 3.0. So the error appears. But there is a fix here.
Fix Use_CodePress error in Thesis Theme using WordPress 3
- Power up your FTP program (I use Filezilla)
- Browse to /wp-content/themes/thesis_17/lib/admin/admin.php.
- Download admin.php
- Open in a text editor like Notepad.
- Locate this text in line 42
if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js');
- Comment out that line by placing two forward slashes just before it.
// if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js');
- Upload and replace admin.php
That should remove all the use_codepress errors, but you will not be able to use the syntax highlighter in your Custom File Editor after that. Remember to keep a backup of admin.php in case something goes wrong.
This site is also currently powered by Thesis theme and you can see our Thesis theme review here. I really wish Thesis developers have some way of sending out critical update emails to paid theme users, rather than they search around the forums.