Skip to content

Commit

Permalink
Merge pull request #29 from justcoded/feature/wp-5.2
Browse files Browse the repository at this point in the history
updating theme boilerplate for WP 5.2
  • Loading branch information
aprokopenko authored May 1, 2019
2 parents d3d7723 + 66954cf commit 61a68f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion inc/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
*
* For example, it can be some kind of date formatters, array sorters, etc.
*/

9 changes: 9 additions & 0 deletions inc/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
1 change: 1 addition & 0 deletions views/layouts/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div id="page">

<?php echo $content; ?>
Expand Down

0 comments on commit 61a68f2

Please sign in to comment.