Set up the actions and filters needed for our compatability layer on top of core's Custom CSS implementation.
public static add_hooks ( ) |
printf(esc_html__('(modified %s ago)', 'jetpack'), human_time_diff(strtotime($data['post']->post_modified_gmt))); ?> </option> <?php } ?> </select> <button class="button" id="other_theme_custom_css_switcher"><?php esc_html_e('Switch', 'jetpack'); ?> </button> </div> <?php } } Jetpack_Custom_CSS_Enhancements::add_hooks(); if (!function_exists('safecss_class')) { /** * Load in the class only when needed. Makes lighter load by having one less class in memory. */ function safecss_class() { // Wrapped so we don't need the parent class just to load the plugin. if (class_exists('safecss')) { return; } require_once dirname(__FILE__) . '/csstidy/class.csstidy.php'; /** * Class safecss */ class safecss extends csstidy_optimise