Ken Newman
Ken Newman
I use VSCode + `ikappas.phpcs` extension, which is set up to look for a `phpcs.xml` in the project root, and checks/highlights errors and warnings while typing, rather than having to...
This is an open source project, which means that this is the personal fiefdom, not really an open community. It's weird that it's included in the WordPress organization. At any...
I think Obenland's plan of hooking the `tha_head_bottom` into the WP hooks is good for consistency, and is similar to the way WP handles things. The `tha_footer_after` isn't correct tho....
I don't think white space before the HTML would hurt anything. If you mean php headers already sent issues, that wouldn't be a problem either.
Just occurred to me that you could alternatively hook wp_head into tha_head_bottom instead of the other way around.
@zamoose Turns out there is an IE bug where if whitespace precedes the Doctype, then it enters quirksmode. But themer's would only have to be as careful with this as...
Anyway, perhaps `tha_html_before` should not be standardized (leave it to the themer, not plugins). Just being thorough.
Building on Cais's use-case (wrapping the inner-body with a container for CSS targeting), we can also consider JS targeting the wrapping container. The reason why we place script tags at...
Obenland's patch would need a refresh to use the new hook
``` function tha_body_bottom() { if ( current_theme_supports( 'tha_hooks', 'body' ) && ! did_action( 'tha_body_bottom' ) ) do_action( 'tha_body_bottom' ); } add_action( 'wp_footer', 'tha_body_bottom', 1 ); ``` and ``` function tha_head_bottom()...