forked from mirror/_s
Merge pull request #1350 from DannyCooper/master
Add wp_body_open() and shim for sites older than 5.2
This commit is contained in:
commit
154ffe9cf2
|
@ -21,6 +21,7 @@
|
|||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div id="page" class="site">
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', '_s' ); ?></a>
|
||||
|
||||
|
|
|
@ -146,3 +146,14 @@ if ( ! function_exists( '_s_post_thumbnail' ) ) :
|
|||
endif; // End is_singular().
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'wp_body_open' ) ) :
|
||||
/**
|
||||
* Shim for sites older than 5.2.
|
||||
*
|
||||
* @link https://core.trac.wordpress.org/ticket/12563
|
||||
*/
|
||||
function wp_body_open() {
|
||||
do_action( 'wp_body_open' );
|
||||
}
|
||||
endif;
|
||||
|
|
Reference in New Issue