presscustomizr / customizr

Simple and fast WordPress theme designed to help you attract and engage more visitors. Provides a perfect user experience on smartphones. Powers 100k+ active sites around the world. Hundreds of 5-stars reviews received on WordPress.org.
https://presscustomizr.com/customizr
Other
137 stars 66 forks source link

Addition of new ‘wp_body_open’ hook (?!) #1722

Closed eri-trabiccolo closed 5 years ago

eri-trabiccolo commented 5 years ago

https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook/

ghost commented 5 years ago

Let's implement tadlock solution in comments https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook/#comment-43714

I’m pretty sure the Theme Sniffer is going to complain about unprefixed functions. Themers can just do this for the same:

do_action( 'wp_body_open' );

Or this for just back-compat:

if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); }

ghost commented 5 years ago

in your devs @eri-trabiccolo we can chat about this during the next dev skype

ghost commented 5 years ago

implemented with a shim to prevent fatal error https://make.wordpress.org/core/2019/04/24/miscellaneous-developer-updates-in-5-2/