Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wp_body_open() and shim for sites older than 5.2 #1350

wants to merge 1 commit into
base: master
Changes from all commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+12 −0
Diff settings


Just for now

Add wp_body_open() shim for sites older than 5.2

  • Loading branch information...
DannyCooper committed Mar 28, 2019
commit 8573a2a325b62adc653e2f406d7856da2aa70bb3
Copy path View file
@@ -21,6 +21,7 @@

<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>

Copy path View file
@@ -146,3 +146,14 @@ function _s_post_thumbnail() {
endif; // End is_singular().
if ( ! function_exists( 'wp_body_open' ) ) :
* Shim for sites older than 5.2.
* @link
function wp_body_open() {
do_action( 'wp_body_open' );
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.