Skip to content

Commit 70751bd

Browse files
committed
Add the backward capability function for 5.2
1 parent 06e8a1b commit 70751bd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎functions.php‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,14 @@
1111
// Boot the service, at after_setup_theme.
1212
\BEA\Theme\Framework\Framework::get_container()->boot_services();
1313
} );
14+
15+
/**
16+
* Handle wp_body_open new function from WP 5.2
17+
* @see https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook/
18+
* @see https://make.wordpress.org/core/2019/04/24/miscellaneous-developer-updates-in-5-2/
19+
*/
20+
if ( ! function_exists( 'wp_body_open' ) ) {
21+
function wp_body_open() {
22+
do_action( 'wp_body_open' );
23+
}
24+
}

0 commit comments

Comments
 (0)