• Resolved Stagger Lee

    (@stagger-lee)


    Seems as you have leftovers from your testing directly in code (several places).

    ://localhost:8000/

    wp_register_script( $this->plugin_slug . '-admin-script', 'https://localhost:8000/assets/wpEditorCommentsPlus.js', array( 'jquery', 'backbone' ), $this->version, false );

    • This topic was modified 7 years, 8 months ago by Stagger Lee.
    • This topic was modified 7 years, 8 months ago by Stagger Lee.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Neosnc

    (@neosnc)

    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

    (@stagger-lee)

    Hi Kentaro,

    can you just explain how those scripts, files, are called on live server after wesbite transfer ?

    Plugin Author Neosnc

    (@neosnc)

    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.