Title: wp_enqueue_script version problem
Last modified: August 19, 2016

---

# wp_enqueue_script version problem

 *  [stratboy](https://wordpress.org/support/users/stratboy/)
 * (@stratboy)
 * [16 years ago](https://wordpress.org/support/topic/wp_enqueue_script-version-problem/)
 * hi! I’ve wrote this (in a function called add_mootools in functions.php)
 * `wp_enqueue_script('mootools','',array(),"1.2");`
 * But the problem is that the html output has always the same version (the wp version!!!
   And this is strange too.. ), just as I didn’t pass it:
 * `<script type='text/javascript' src='http://reghellin.unbit.it/test-nino/wp-content/
   themes/el-nino/js/mootools.js?ver=2.9.2'></script>`

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [stratboy](https://wordpress.org/support/users/stratboy/)
 * (@stratboy)
 * [16 years ago](https://wordpress.org/support/topic/wp_enqueue_script-version-problem/#post-1503278)
 * pardon, so, the question: how can I effectively get the version written?
 *  Thread Starter [stratboy](https://wordpress.org/support/users/stratboy/)
 * (@stratboy)
 * [16 years ago](https://wordpress.org/support/topic/wp_enqueue_script-version-problem/#post-1503578)
 * no?
 *  [pachito86](https://wordpress.org/support/users/pachito86/)
 * (@pachito86)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_enqueue_script-version-problem/#post-1503635)
 * i’ve the same problem i don’t want to have ver=2.9.2 written after the script
   source.
 * [http://reghellin.unbit.it/test-nino/wp-content/themes/el-nino/js/mootools.js](http://reghellin.unbit.it/test-nino/wp-content/themes/el-nino/js/mootools.js)?**
   ver=2.9.2**

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp_enqueue_script version problem’ is closed to new replies.

## Tags

 * [wp_enqueue_script](https://wordpress.org/support/topic-tag/wp_enqueue_script/)

 * 3 replies
 * 2 participants
 * Last reply from: [pachito86](https://wordpress.org/support/users/pachito86/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/wp_enqueue_script-version-problem/#post-1503635)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
