Better CSS Handling (Change Enqueue to head)
philiparthurmoore opened this issue · 4 comments
philiparthurmoore commented
See https://twitter.com/michaelarestad/status/503047788176101376 from @MichaelArestad. I'll release this fix before September 1st.
philiparthurmoore commented
@MichaelArestad Just fixed this. The styles will simply be output via wp_head
. Do you see any potential issues here?
philiparthurmoore commented
Here's the changeset.
philiparthurmoore commented
Noting that with this method the following code would be needed to ditch the styling:
if ( class_exists( 'Subtitles' ) && method_exists( 'Subtitles', 'subtitle_styling' ) ) {
remove_action( 'wp_head', array( Subtitles::getInstance(), 'subtitle_styling' ) );
}
philiparthurmoore commented
Plugin bumped to 2.0.0 in 6e3a46d6097b.