You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WordPress 4.7 introduced some new code that allows custom CSS to be entered in the customizer.
The custom CSS is saved as a custom post type which WordPress tries to load in the filter hook wp_custom_css_cb.
We don't need this for two reasons
We have our own custom CSS code
It's a performance overhead. Measured at approx 2% increase in server elapsed time.
Proposed solution
Remove the action hook. remove_action( 'wp_head', 'wp_custom_css_cb', 11 );
The text was updated successfully, but these errors were encountered:
WordPress 4.7 introduced some new code that allows custom CSS to be entered in the customizer.
The custom CSS is saved as a custom post type which WordPress tries to load in the filter hook
wp_custom_css_cb
.We don't need this for two reasons
Proposed solution
Remove the action hook.
remove_action( 'wp_head', 'wp_custom_css_cb', 11 );
The text was updated successfully, but these errors were encountered: