If you are a WordPress user who also happens to use the Thesis theme, chances are you may have run into a snag if you upgraded to WordPress 3.0. Specifically, I’m referring to the inability to access the “Custom File Editor” of Thesis that happens after you upgrade.
The error message that appears on your screen after clicking on the file editor gives a pretty big hint as to where the problem lies. But if you don’t want to be bothered with any kind of explanation of what the problem is (like me) and just want to fix it, then read on.
The problem lies in the admin.php file in the /lib/admin folder of the Thesis theme. What you have to do is open up the admin.php file in the text editor of your choice and locate this section:
function thesis_options_head() {
wp_enqueue_style('thesis-options-stylesheet', THESIS_CSS_FOLDER . '/options.css'); #wp
if ($_GET['page'] == 'thesis-file-editor') {
require_once(ABSPATH . 'wp-admin/includes/misc.php'); #wp
wp_enqueue_script('color-picker', THESIS_SCRIPTS_FOLDER . '/jscolor/jscolor.js'); #wp
if (function_exists('use_codepress'))
wp_enqueue_script('codepress');
if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js');
}
You need to comment out the line about using codepress like so:
function thesis_options_head() {
wp_enqueue_style('thesis-options-stylesheet', THESIS_CSS_FOLDER . '/options.css'); #wp
if ($_GET['page'] == 'thesis-file-editor') {
require_once(ABSPATH . 'wp-admin/includes/misc.php'); #wp
wp_enqueue_script('color-picker', THESIS_SCRIPTS_FOLDER . '/jscolor/jscolor.js'); #wp
if (function_exists('use_codepress'))
wp_enqueue_script('codepress');
// if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js');
}
After commenting that one line out, save the file and overwrite the admin.php file on your server and everything will return to being groovy.
No related posts.
{ 1 comment… read it below or add one }
Thanks Rob, I had forgotten this fix and came back to your site to get it!