WordPress.org

Make WordPress Core

Changeset 26822


Ignore:
Timestamp:
12/09/2013 04:20:26 AM (6 years ago)
Author:
azaozz
Message:

Fix error in postbox.js attempting to change screen columns on mobile devices orientation changes, fixes #26493.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/postbox.js

    r26167 r26822  
    156156        _pb_edit : function(n) {
    157157            var el = $('.metabox-holder').get(0);
    158             el.className = el.className.replace(/columns-\d+/, 'columns-' + n);
     158
     159            if ( el ) {
     160                el.className = el.className.replace(/columns-\d+/, 'columns-' + n);
     161            }
    159162        },
    160163
Note: See TracChangeset for help on using the changeset viewer.