Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@armandmorin
Created September 3, 2011 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armandmorin/1190684 to your computer and use it in GitHub Desktop.
Save armandmorin/1190684 to your computer and use it in GitHub Desktop.
Multiple Metabox Fix
<script type="text/javascript">
//<![CDATA[
jQuery('body').bind('afterPreWpautop', function(e, o){
o.data = o.unfiltered
.replace(/caption\]\[caption/g, 'caption] [caption')
.replace(/<object[\s\S]+?<\/object>/g, function(a) {
return a.replace(/[\r\n]+/g, ' ');
});
}).bind('afterWpautop', function(e, o){
o.data = o.unfiltered;
});
//]]>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment