Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cases of wp_enqueue_style being called after wp_head has run #220

Open
tw2113 opened this issue Feb 21, 2014 · 0 comments
Open

Cases of wp_enqueue_style being called after wp_head has run #220

tw2113 opened this issue Feb 21, 2014 · 0 comments
Labels

Comments

@tw2113
Copy link
Collaborator

tw2113 commented Feb 21, 2014

We have some places and cases of calling wp_enqueue_style() later than we should, and it's causing stylesheets to be loaded via wp_footer(). While this is generally fine, as the styles still get applied, though delayed, it is causing validation issues with html5 validator. From a practical stance, the styles should be loaded in regardless.

Two known places of it running late:
earned-user-achievements-widget.php line 91. In the widget() method.
content-filters.php line 116 in a callback for a the_content filter.

Possible other places:
content-filters.php line 383 in the badgeos_render_achievement() function. Not explicitly called right away, but there's good chance it's used after wp_head has run.
shortcode callbacks for both badgeos_achievement and badgeos_achievements_list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant