Media Library: Set max value of columns to 12.
fixes #29275. git-svn-id: https://develop.svn.wordpress.org/trunk@29547 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
50ba21e179
commit
e703e74b2c
@ -5344,7 +5344,7 @@
|
||||
width = this.$el.width();
|
||||
|
||||
if ( width ) {
|
||||
this.columns = Math.round( width / this.options.idealColumnWidth ) || 1;
|
||||
this.columns = Math.min( Math.round( width / this.options.idealColumnWidth ), 12 ) || 1;
|
||||
|
||||
if ( ! prev || prev !== this.columns ) {
|
||||
this.$el.attr( 'data-columns', this.columns );
|
||||
|
Loading…
Reference in New Issue
Block a user