After body fallback behavior
-
Hi,
I just have a suggestion for the plugin. Currently if the theme does not use the
wp_body_open()function or action then any scripts attached to “After <body>” are not output at all.My suggestion is to output the “After <body>” scripts in the footer if the theme does not support
wp_body_open(). This could be achieved by adding these lines to thefind_footer_tracking_codes()function:if ( ! did_action( 'wp_body_open' ) ) { $this->find_page_tracking_codes(); }This is the solution suggested in this trac ticket:
https://core.trac.wordpress.org/ticket/46743#comment:13
The topic ‘After body fallback behavior’ is closed to new replies.