public static function remove_posts() { self::$crayon_posts = array(); self::save_posts(); }
public static function load_posts() { if (self::$crayon_posts === NULL) { // Load from db if (!(self::$crayon_posts = get_option(self::POSTS))) { // Posts don't exist! Scan for them. This will fill self::$crayon_posts self::$crayon_posts = CrayonWP::scan_posts(); update_option(self::POSTS, self::$crayon_posts); } } return self::$crayon_posts; }