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:
IanDelMar 2019-05-03 08:33:40 +02:00 committed by GitHub
parent 0e76b4008d
commit 6076c91553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -23,13 +23,7 @@ $container = get_theme_mod( 'understrap_container_type' );
</head> </head>
<body <?php body_class(); ?>> <body <?php body_class(); ?>>
<?php <?php do_action( 'wp_body_open' ); ?>
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} else {
do_action( 'wp_body_open' );
}
?>
<div class="site" id="page"> <div class="site" id="page">
<!-- ******************* The Navbar Area ******************* --> <!-- ******************* The Navbar Area ******************* -->