Title: Localhost &#8211; hardcoded
Last modified: March 16, 2017

---

# Localhost – hardcoded

 *  Resolved [Stagger Lee](https://wordpress.org/support/users/stagger-lee/)
 * (@stagger-lee)
 * [9 years ago](https://wordpress.org/support/topic/localhost-hardcoded/)
 * Seems as you have leftovers from your testing directly in code (several places).
 * **://localhost:8000/**
 * `wp_register_script( $this->plugin_slug . '-admin-script', 'http://localhost:
   8000/assets/wpEditorCommentsPlus.js', array( 'jquery', 'backbone' ), $this->version,
   false );`
    -  This topic was modified 9 years ago by [Stagger Lee](https://wordpress.org/support/users/stagger-lee/).
    -  This topic was modified 9 years ago by [Stagger Lee](https://wordpress.org/support/users/stagger-lee/).

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

 *  Plugin Author [Neosnc](https://wordpress.org/support/users/neosnc/)
 * (@neosnc)
 * [9 years ago](https://wordpress.org/support/topic/localhost-hardcoded/#post-8924206)
 * Hi Stagger, that code only runs if a global dev variable is set to true. There
   may be a more elegant way to load it but it shouldn’t affect any production sites.
 * Cheers,
    Kentaro
 *  Thread Starter [Stagger Lee](https://wordpress.org/support/users/stagger-lee/)
 * (@stagger-lee)
 * [9 years ago](https://wordpress.org/support/topic/localhost-hardcoded/#post-8925182)
 * Hi Kentaro,
 * can you just explain how those scripts, files, are called on live server after
   wesbite transfer ?
 *  Plugin Author [Neosnc](https://wordpress.org/support/users/neosnc/)
 * (@neosnc)
 * [9 years ago](https://wordpress.org/support/topic/localhost-hardcoded/#post-8928563)
 * They are never run. Only in my local environment if I set a wpecp_local_dev to
   true then that script can load. wpecp_local_dev should always be false in production
   environments.

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

The topic ‘Localhost – hardcoded’ is closed to new replies.

 * ![](https://ps.w.org/wp-editor-comments-plus/assets/icon-256x256.png?rev=1323855)
 * [WP Editor Comments Plus](https://wordpress.org/plugins/wp-editor-comments-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-editor-comments-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-editor-comments-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-editor-comments-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-editor-comments-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-editor-comments-plus/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Neosnc](https://wordpress.org/support/users/neosnc/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/localhost-hardcoded/#post-8928563)
 * Status: resolved