Fix for local development

This commit is contained in:
Vencislav Atanasov 2023-10-16 20:49:00 +03:00
parent 08d3cd0423
commit a0b6b4f6d9
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ add_filter( 'the_excerpt', 'shortcode_unautop');
add_filter( 'the_excerpt', 'do_shortcode'); add_filter( 'the_excerpt', 'do_shortcode');
function get_blog_slug() { function get_blog_slug() {
if (!is_multisite()) {
// local development, non-multisite
return date('Y');
}
$blog_details = get_blog_details(); $blog_details = get_blog_details();
return trim($blog_details->path, '/'); return trim($blog_details->path, '/');
} }