Forum Replies Created

Viewing 1 replies (of 1 total)
  • One issue I had with multisite is editor breakage on non-default sites. This was easily fixed. In ztranslate.js, zTranslate decides whether to start its editor or not based on this line:

    switch (location.pathname)

    which tests for things like "/wp-admin/post.php", but will fail for "/site/wp-admin/post.php". Replacing that line with these two enables the editor for subsites:

    var matches = location.pathname.match(/(\/wp-admin\/([^\/]*))$/);
    switch (matches && matches[1])
Viewing 1 replies (of 1 total)