About Blogging WP Tutorials Google Apple Computers Downloads SEO Facebook Twitter
  • 19/06/2010    

Fix Thesis Theme Custom File Editor Use_CodePress Errors in WordPress 3.0

Advertisements

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.

24 Responses

  1. Thank you! I would have never found this out by myself :)

    Emma posted on 12/07/2010
  2. thanks a lot ! it worked

    chrome tips posted on 24/07/2010
  3. Hey, thanks so much for this information. I was going to ask the Thesis guys for help but the site was down. Your help was much better anyway. Again, thanks!

    Malachi posted on 01/08/2010
  4. Thank you so much for this information. Lifesaver!!!!!

    Andrew posted on 05/08/2010
  5. Thanks a ton! finally i got a solution!
    couldn’t bear it!

    Faizan posted on 02/09/2010

Leave a Reply to “Fix Thesis Theme Custom File Editor Use_CodePress Errors in WordPress 3.0”

Name Email Site