Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Multiple Metabox Fix
<script type="text/javascript">
jQuery('body').bind('afterPreWpautop', function(e, o){ = 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.unfiltered;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.