Soft Reject : wp_enqueue_script

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

reviewers say :
Delete this.
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 :


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


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:


Thanks varunsridharan :smiley:

1 Like