Fix for local development
This commit is contained in:
parent
08d3cd0423
commit
a0b6b4f6d9
|
@ -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, '/');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue