Title: Duplicated code in header
Last modified: August 24, 2016

---

# Duplicated code in header

 *  Resolved [malcomxar](https://wordpress.org/support/users/malcomxar/)
 * (@malcomxar)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/duplicated-code-in-header/)
 * Hi, sorry to bother again but in the header the following script is duplicated
 *     ```
       <script type="text/javascript">
       window.ParsleyConfig = { excluded: ".exclude" };
       var usp_case_sensitivity = <?php echo json_encode($print_casing); ?>;
       var usp_challenge_response = <?php echo json_encode($usp_response); ?>;
       </script>
       ```
   
 * How ca I fix that?
 * By the way, what happens if I uncheck the option “Check this box if you want 
   to include the external JavaScript files (recommended).”
    I know that the JS 
   wont load, but will this affect the functionallity of the plugin? Best regards!
 * [https://wordpress.org/plugins/user-submitted-posts/](https://wordpress.org/plugins/user-submitted-posts/)

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/duplicated-code-in-header/#post-6173139)
 * I’m not sure, normally only one instance of the script is included. It sounds
   like something is interfering, could be the settings, JS setup, another plugin,
   the theme, and so forth. I would recommend some basic troubleshooting to determine
   the cause.
 * If you uncheck the box to include JS, the plugin submission stuff will continue
   to work fine, but the scripts that are included in the JS file will not be used.
   That would include things like cookies, Parsley, and other front-end enhancements.
 *  Thread Starter [malcomxar](https://wordpress.org/support/users/malcomxar/)
 * (@malcomxar)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/duplicated-code-in-header/#post-6173347)
 * It’s the WP postratings that is duplicating olny that part of the code.

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

The topic ‘Duplicated code in header’ is closed to new replies.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [malcomxar](https://wordpress.org/support/users/malcomxar/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/duplicated-code-in-header/#post-6173347)
 * Status: resolved