WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is an odd query I have and wondered if anybody can shed some light on it?

We have a number WordPress multi-site (formally Mu) install, but on nearly all the sites on multiple installs we are getting this script tag...

<script src='http://[parent-domain]/?dm=[random-string]&amp;action=load&amp;blogid=1&amp;siteid=1&amp;t=401255033&amp;back=[this-sites-domain' type='text/javascript'></script>

I was wondering if anybody knows what this is all about?


share|improve this question

It is added by the Domain Mapping Plugin and i believe (i might be wrong) it is used to log users into all MU sites with a single login.

to remove it:

add_action('wp_loaded', 'remove_unwanted_js');
function remove_unwanted_js(){

    remove_action( 'wp_head', 'remote_login_js_loader' );

share|improve this answer

In Network Admin > Settings > Domain Mapping > Domain Options, uncheck Remote Login. That should also remove it.

In my case, the "script" just retrieves the home page (html), causing a script error and a lot of wasted resources on every page view. Similar complaints in Does Domain Mapping plugin insert javascript on headers?.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.