diff --git a/inc/helpers.php b/inc/helpers.php index f1c67f0..9a99f22 100644 --- a/inc/helpers.php +++ b/inc/helpers.php @@ -4,4 +4,3 @@ * * For example, it can be some kind of date formatters, array sorters, etc. */ - diff --git a/inc/hooks.php b/inc/hooks.php index 090f27f..dff443a 100644 --- a/inc/hooks.php +++ b/inc/hooks.php @@ -22,6 +22,15 @@ function boilerplate_body_classes( $classes ) { add_filter( 'body_class', 'boilerplate_body_classes' ); +/** + * Support previous versions of WordPress. + */ +if ( ! function_exists( 'wp_body_open' ) ) { + function wp_body_open() { + do_action( 'wp_body_open' ); + } +} + //Remove emoji remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); diff --git a/views/layouts/html.php b/views/layouts/html.php index a5637ff..1e7fec7 100644 --- a/views/layouts/html.php +++ b/views/layouts/html.php @@ -15,6 +15,7 @@ > +