Introduce add_theme_support('bootstrap-gallery')
Only apply the Roots [gallery] shortcode if enabled in config.php
This commit is contained in:
@@ -360,8 +360,10 @@ function roots_gallery($attr) {
|
||||
return $output;
|
||||
}
|
||||
|
||||
remove_shortcode('gallery');
|
||||
add_shortcode('gallery', 'roots_gallery');
|
||||
if (current_theme_supports('bootstrap-gallery')) {
|
||||
remove_shortcode('gallery');
|
||||
add_shortcode('gallery', 'roots_gallery');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove unnecessary dashboard widgets
|
||||
|
||||
Reference in New Issue
Block a user