compile_scss(); update_option( 'areoi-version', $areoi_version ); } // Recompile if theme.json exists and has been updated if ( $theme_json = areoi_get_theme_json() && get_option( 'areoi-dashboard-global-bootstrap-css' ) ) { $cur_filetime = areoi_get_theme_json_last_update(); $prev_filetime = get_option( 'areoi-theme-json-updated' ); if ( !$prev_filetime || $prev_filetime < $cur_filetime ) { $_settings = new AREOI_Settings(); $_settings->compile_scss(); } }