WordPress.org

Make WordPress Core

Changeset 29547


Ignore:
Timestamp:
08/20/2014 04:16:44 PM (7 years ago)
Author:
ocean90
Message:

Media Library: Set max value of columns to 12.

fixes #29275.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r29532 r29547  
    53455345
    53465346            if ( width ) {
    5347                 this.columns = Math.round( width / this.options.idealColumnWidth ) || 1;
     5347                this.columns = Math.min( Math.round( width / this.options.idealColumnWidth ), 12 ) || 1;
    53485348
    53495349                if ( ! prev || prev !== this.columns ) {
Note: See TracChangeset for help on using the changeset viewer.