/** * This loads the posts marked as containing Crayons */ public static function load_legacy_posts($force = FALSE) { if (self::$crayon_legacy_posts === NULL || $force) { // Load from db if (!(self::$crayon_legacy_posts = get_option(self::LEGACY_POSTS))) { // Posts don't exist! Scan for them. This will fill self::$crayon_legacy_posts self::$crayon_legacy_posts = CrayonWP::scan_legacy_posts(); update_option(self::LEGACY_POSTS, self::$crayon_legacy_posts); } } return self::$crayon_legacy_posts; }