Improve code simplicity
It is sufficient to call the `do_action( 'wp_body_open' )` directly instead of the wrapper. See https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook/#comment-43714
This commit is contained in:
parent
0e76b4008d
commit
6076c91553
|
@ -23,13 +23,7 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<?php
|
||||
if ( function_exists( 'wp_body_open' ) ) {
|
||||
wp_body_open();
|
||||
} else {
|
||||
do_action( 'wp_body_open' );
|
||||
}
|
||||
?>
|
||||
<?php do_action( 'wp_body_open' ); ?>
|
||||
<div class="site" id="page">
|
||||
|
||||
<!-- ******************* The Navbar Area ******************* -->
|
||||
|
|
Reference in New Issue