Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Check for did_action('wp_head'). Closes #1142

  • Loading branch information...
commit 4198bb6b72db78f198dceeaac278a6998f7e155a 1 parent 69f5d17
@pippinsplugins pippinsplugins authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 includes/template-functions.php
View
4 includes/template-functions.php
@@ -543,7 +543,9 @@ function edd_get_theme_template_dir_name() {
* @return bool
*/
function edd_add_schema_microdata() {
- return apply_filters( 'edd_add_schema_microdata', true );
+ // Don't modify anything until after wp_head() is callsed
+ $ret = did_action( 'wp_head' );
+ return apply_filters( 'edd_add_schema_microdata', $ret );
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.