From a0b6b4f6d9c8249cd400a6f445d768e785ce5caa Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Mon, 16 Oct 2023 20:49:00 +0300 Subject: [PATCH] Fix for local development --- functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions.php b/functions.php index 61b1818..ab9b7fb 100644 --- a/functions.php +++ b/functions.php @@ -8,6 +8,11 @@ add_filter( 'the_excerpt', 'shortcode_unautop'); add_filter( 'the_excerpt', 'do_shortcode'); function get_blog_slug() { + if (!is_multisite()) { + // local development, non-multisite + return date('Y'); + } + $blog_details = get_blog_details(); return trim($blog_details->path, '/'); }