type="text/css" />

How to fix Thesis Theme Custom File Editor use_codepress() fatal error?

If you are using Thesis Theme 1.7 and recently upgraded to WordPress 3.0, you must be facing an error caused by use_codepress() function while you are trying to working in Custom File Editor.

Can you please explain what is happening?

When you are using Thesis Theme’s built-in code editor, Custom File Editor, it uses a WordPress function called use_codepress(). Actually this function highlights the code syntax in the browser. But the use_codepress() function is now deprecated in WordPress 3.0. So the error appears.

Fatal error: Call to undefined function: use_codepress() in /[YOUR DIRECTORY NAME]/wp-content/themes/thesis_17/lib/admin/admin.php on line 42

OK… Tell me how I can fix Thesis Theme use_codepress() problem

  • Start your FTP program and log in to your hosting account. Personally I use FileZilla, it’s free to download and simple to use.
  • Browse to /wp-content/themes/thesis_17/lib/admin/ folder.
  • Download admin.php to your desktop.
  • Open the file in a text editor like Notepad.
  • Go to line 42 where the following code appears
    <?php if (use_codepress(
    ) add_action(
    , 'codepress_footer_js'
    ; ?>
  • Comment out that line by placing two forward slashes just before it.
    <?php // if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js'); ?>
  • Save the file, Upload and replace admin.php

Hope this will fix all the use_codepress errors, but you will not be able to use the syntax highlighter in your Custom File Editor anymore. Please keep a backup of admin.php before editing in case something goes wrong.

By Jinnat Ul Hasan | On Sunday, July 25th, 2010 | Under How To's, Premium Themes | No Comments ยป


Contact our experts, most of the time we assist our readers free of charge.

Those who found this page were searching for:

  • thesis code error
  • thesis theme Fatal error: Call to undefined function use_codepress() in
  • code editor for thesis
  • editor wordpress admin error
  • "call to undefined function _ deprecated file()"
  • admin_print_footer_scripts not working
  • how to fix a php error thesis wordpress
  • Call to undefined function use_codepress
  • thesis theme custom file editor
  • call thesis function from

Previous post:

Next post: