Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.
wp_enqueue_script('jquery', includes_url() . 'js/jquery.js', array(''), '1.7.2', true); // loads in the footer

wp_enqueue_script('jquery','', array(''), '', true); // loads in the head

I just think it seems like backwards development to have to include a non-null value for each parameter to get the script to load where I want it to.

share|improve this question

closed as not a real question by Michael, kaiser, Chris_O, Rarst Oct 1 '12 at 19:21

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 1 down vote accepted

Because that is the signature of that particular function. If you don't like it, you can always use a wrapper function like the one below.

function wpse61783_enqueue_script( $handle, $src ) {
    wp_enqueue_script( $handle, $src, array(), '', true );
}
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.