Skip to content

Commit

Permalink
Check for did_action('wp_head'). Closes #1142
Browse files Browse the repository at this point in the history
  • Loading branch information
pippinsplugins committed Jul 23, 2013
1 parent 69f5d17 commit 4198bb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/template-functions.php
Expand Up @@ -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 );
}

/**
Expand Down

0 comments on commit 4198bb6

Please sign in to comment.