Soft Reject : wp_enqueue_script

Hi, i have soft reject.
i don’t understand with this trouble.

reviewers say :
Delete this. http://envato.d.pr/1147Y/2beabHTY
There is no need to use the function wp_enqueue_script just to insert jQuery, since jQuery can be called for those scripts which need it passing the argument array(‘jquery’).

my code :
http://pastebin.com/eTc0VX3W

Hi,

You have added your own jquery. which is not required in wp. because wp it self enqueues jquery if you add wp_heade() / wp_footer() functions

2 Likes

i still don’t understand, Can you give an example ? :slightly_smiling:

In your code.

You have added your own jquery script. but which wp has it already.

so just remove the jquery script. and send again for review :slight_smile:

2 Likes

Thanks varunsridharan :smiley:

1 Like