I wrote a small plugin for Bluetrait 2 that allows some basic WordPress plugin compatibility. The first plugin that works is WP-Syntax the only change that was required to this plugin was to rename the main plugin file.
Let's give it a test:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | <?php /* Bluetrait 2.0 Cron Support Michael Dale Copyright 2007 */ //stop from running over and over again :) define('BT_RUNNING_CRON', TRUE); ignore_user_abort(TRUE); include('bt-common.php'); $cron_intervals = bt_get_config('cron_intervals'); if (!is_array($cron_intervals)) exit; foreach ($cron_intervals as &$cron_interval) { if ($cron_interval['next_run'] <= bt_datetime()) { $cron_interval['next_run'] = bt_datetime($cron_interval['frequency']); bt_run_section('cron_' . $cron_interval['name']); //too noisy //trigger_error('Cron ('.$cron_interval['description'].') Successful', E_USER_NOTICE); } } bt_set_config('cron_intervals', $cron_intervals); ?> |
Looks like I need to make a few changes to the CSS. But it doesn't look too bad.