public function __construct() { $this->crontrol = Crontrol::init(); }
break; } } // set output var $output = sprintf(_n($name[0], $name[1], $count, 'wp-crontrol'), $count); // step two: the second chunk if ($i + 1 < $j) { $seconds2 = $chunks[$i + 1][0]; $name2 = $chunks[$i + 1][1]; if (($count2 = floor(($since - $seconds * $count) / $seconds2)) != 0) { // add to output var $output .= ' ' . sprintf(_n($name2[0], $name2[1], $count2, 'wp-crontrol'), $count2); } } return $output; } public static function init() { static $instance = null; if (!$instance) { $instance = new Crontrol(); } return $instance; } } if (defined('WP_CLI') and WP_CLI and is_readable($wp_cli = dirname(__FILE__) . '/class-wp-cli.php')) { include_once $wp_cli; } // Get this show on the road Crontrol::init();