The Ashes

Technology, Science and other news
June 16, 2009

Thesis theme and WordPress 2.8

Posted by : admin
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.

Tags :

No Comments

(required)
(will not be published) (required)
(opitional)

cciash.com EN ES IT DE PT CZ FR RU
October 2018
M T W T F S S
« Sep    
1234567
891011121314
15161718192021
22232425262728
293031  

Pages

Categories

Resources

There are many online poker site where you can play but at poker.hk you can play the poker games with all the knowledge you need related to the game with the poker school available in both the English and Chinese language.

Super Casino

Now you can bet on any sports and any sporting events from all the comfort from your home. Bet770 allows you to bet on any events and match with in just 3 clicks. They also offers great odds on football betting for every premier and champions league match. Get £50 free in bets when you register.

Bingo770, offering best online bingo games with £7.70 free no deposit Bonus!