The Ashes
Technology, Science and other news
June 16, 2009
Thesis theme and WordPress 2.8
Filed under : General
The Thesis theme does not work well with WordPress 2.8.
One effect is that it does not work the buttons to upload images and videos in the edition of a post.
The ultimate solution is to update the theme to version 1.5.1. This version supports the new features of WordPress 2.8. See more at: http://diythemes.com/thesis/version-151-release/
Another solution to touch the code of Thesis 1.5.
You have to find the file admin.php in the directory /lib/admin under the theme.
Here:
1) Search thesis_options_js function () and replace this code
$date_modified_js = filemtime(THESIS_SCRIPTS . '/thesis.js'); $date_modified_ui = filemtime(THESIS_SCRIPTS . '/jquery-ui.js'); echo '<script type="text/javascript" src="' . THESIS_SCRIPTS_FOLDER . '/thesis.js?d=' . date('mdy-Gms', $date_modified_js) . '" /></script>' . "\n"; echo '<script type="text/javascript" src="' . THESIS_SCRIPTS_FOLDER . '/jquery-ui.js?d=' . date('mdy-Gms', $date_modified_ui) . '" /></script>' . "\n";
For this other code:
if (!is_admin()) { return; } $date_modified_js = filemtime(THESIS_SCRIPTS . '/thesis.js'); $date_modified_ui = filemtime(THESIS_SCRIPTS . '/jquery-ui.js'); wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-sortable'); wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_script('thesis-admin-js', THESIS_SCRIPTS_FOLDER.'/thesis.js');2) In the same file search function thesis_admin_styles_and_scripts (). And replace only this code
add_action('admin_head', 'thesis_options_stylesheet'); add_action('admin_head', 'thesis_options_js');for this:
add_action('admin_head', 'thesis_options_stylesheet'); add_action('admin_head', 'thesis_options_js'); add_action('init', 'thesis_options_js');Save and enjoy.
Please backup the file : /lib/admin/admin.php.
- Stumble upon something good? Share it on StumbleUpon
- Tweet This!
- Digg this!
- Share this on del.icio.us
- Share this on Reddit
- Buzz up!
- Share this on Technorati
- Share this on Mixx
- Share this on Facebook
- Email this to a friend?
- Subscribe to the comments for this post?
- Share this on Linkedin
- Seed this on Newsvine
- Add this to Google Bookmarks
- Add this to Mister Wong
- Post this to MySpace
Tags :
No Comments