Make WordPress Core

Ticket #29275: 29275.patch

File 29275.patch, 564 bytes (added by ocean90, 11 years ago)
  • src/wp-includes/js/media-views.js

     
    53445344                                width = this.$el.width();
    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 ) {
    53505350                                        this.$el.attr( 'data-columns', this.columns );