Title: Add jQuery dependency when registering the scripts.
Last modified: August 22, 2016

---

# Add jQuery dependency when registering the scripts.

 *  [Jacques Letesson](https://wordpress.org/support/users/jk_/)
 * (@jk_)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/add-jquery-dependency-when-registering-the-scripts/)
 * Hi guys,
 * I always deregister jQuery to include all my JS files in the footer.
 * Right now the plugin doesn’t specify any dependency when registering the scripts.
 * It could be a great idea to add it to avoid any conflict.
 * Line 73 to 75 :
 *     ```
       wp_register_script( 'live-edit-admin', $this->settings['dir'] . '/js/functions.admin.js', array('jquery'), $this->settings['version'] );
       wp_register_script( 'live-edit-front', $this->settings['dir'] . '/js/functions.front.js', array('jquery'), $this->settings['version'] );
       ```
   
 * Amazing plugin by the way.
 * [https://wordpress.org/plugins/live-edit/](https://wordpress.org/plugins/live-edit/)

The topic ‘Add jQuery dependency when registering the scripts.’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/live-edit.svg)
 * [Live Edit](https://wordpress.org/plugins/live-edit/)
 * [Support Threads](https://wordpress.org/support/plugin/live-edit/)
 * [Active Topics](https://wordpress.org/support/plugin/live-edit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/live-edit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/live-edit/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jacques Letesson](https://wordpress.org/support/users/jk_/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/add-jquery-dependency-when-registering-the-scripts/)
 * Status: not resolved