WordPress 3.0, the much awaited wordpress release so far, finally arrived and I was excited to try to it out on my blog just like so many bloggers out there. I did and I was exploring the new features of this setup when I ran into the problem. I have Thesis theme version 1.7 installed on my blog, as you may already know and everything was looking compatible with WordPress 3 till I clicked on Custom File Editor option of Thesis.
I was confronted with the below error:
Fatal error: Call to undefined function use_codepress() in /home/content/46/5420546/html/wp-content/themes/thesis_17/lib/admin/admin.php on line 42
What’s The Solution?
Well, it’s pretty simple! Follow the below steps and you should be good.
1. Connect to your domain host using FTP client like FileZilla (my favorite!)
2. Go to the location mentioned in the error message i.e. wp-content/themes/thesis_17/lib/admin/
3. Download admin.php to your local machine and open it using any editor of your choice
4. Just comment out line number 42 (mentioned in the error message) by adding two forward slashes before it:
//if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js');
5. Upload the updated admin.php to the wp-content/themes/thesis_17/lib/admin/ and you are done!
You should be able to use Custom File Editor now without any hassle. The only thing missing would be syntax highlighting, but until Thesis developers come out with some concrete solution, we will have to live with that. I am sure Thesis team is already looking for alternative solutions. Keep your fingers crossed and keep geeking!
P. S. Don’t forget to keep backup copy of admin.php, just in case anything goes wrong.