Automattic / _s

Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
http://underscores.me/
GNU General Public License v2.0
10.96k stars 3.12k forks source link

Add call to wp_body_open #1357

Closed spacedmonkey closed 4 years ago

spacedmonkey commented 5 years ago

The function wp_body_open was added in WordPress 5.2. This theme should call it in header.php and include a backward compatilibity slim for old versions of WordPress.

spacedmonkey commented 5 years ago

Related #1350

kafleg commented 5 years ago

For the backward compatibility. Lots of the themes in WP repo are submitted with the _s and they are missing it.

//wp_body_open hook from WordPress 5.2 if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); }

Ismail-elkorchi commented 4 years ago

Closing as it is fixed in #1350.