Skip to content

Instantly share code, notes, and snippets.

@miguelpeixe
Created November 12, 2013 18:52
Show Gist options
  • Save miguelpeixe/7436559 to your computer and use it in GitHub Desktop.
Save miguelpeixe/7436559 to your computer and use it in GitHub Desktop.
Fix qTranslate javascript behaviour on Advanced Custom Fields

On the file qtranslate_javascript.php replace the line:

qtrans_save(switchEditors.pre_wpautop(o.content));

with:

if (ed.editorId.match(/^qtrans_/)) {
  qtrans_save(switchEditors.pre_wpautop(o.content));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment