Add wp_body_open() shim for sites older than 5.2
This commit is contained in:
parent
28f0a5b4e5
commit
8573a2a325
2 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue