public static function wp_head() { CrayonLog::debug('head'); self::$wp_head = TRUE; if (!self::$enqueued) { CrayonLog::debug('head: missed enqueue'); // We have missed our chance to check before enqueuing. Use setting to either load always or only in the_post CrayonSettingsWP::load_settings(TRUE); // Ensure settings are loaded // If we need the tag editor loaded at all times, we must enqueue at all times if (!CrayonGlobalSettings::val(CrayonSettings::EFFICIENT_ENQUEUE) || CrayonGlobalSettings::val(CrayonSettings::TAG_EDITOR_FRONT)) { CrayonLog::debug('head: force enqueue'); // Efficient enqueuing disabled, always load despite enqueuing or not in the_post self::enqueue_resources(); } } // Enqueue Theme CSS if (CrayonGlobalSettings::val(CrayonSettings::ENQUEUE_THEMES)) { self::crayon_theme_css(); } // Enqueue Font CSS if (CrayonGlobalSettings::val(CrayonSettings::ENQUEUE_FONTS)) { self::crayon_font_css(); } }