Fix error in postbox.js attempting to change screen columns on mobile devices orientation changes, fixes #26493.
git-svn-id: https://develop.svn.wordpress.org/trunk@26822 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5b05610ade
commit
572e5bc710
@ -155,7 +155,10 @@ var postboxes;
|
||||
|
||||
_pb_edit : function(n) {
|
||||
var el = $('.metabox-holder').get(0);
|
||||
el.className = el.className.replace(/columns-\d+/, 'columns-' + n);
|
||||
|
||||
if ( el ) {
|
||||
el.className = el.className.replace(/columns-\d+/, 'columns-' + n);
|
||||
}
|
||||
},
|
||||
|
||||
_pb_change : function() {
|
||||
|
Loading…
Reference in New Issue
Block a user