diff --git a/resources/functions.php b/resources/functions.php index a92aa27..137a026 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -86,6 +86,9 @@ add_filter('stylesheet_directory_uri', function ($uri) { }); if ($sage_views !== get_option('stylesheet')) { update_option('stylesheet', $sage_views); + if (php_sapi_name() === 'cli') { + return; + } wp_redirect($_SERVER['REQUEST_URI']); exit(); }