Media Library: Set max value of columns to 12.

fixes #29275.
Built from https://develop.svn.wordpress.org/trunk@29547


git-svn-id: http://core.svn.wordpress.org/trunk@29323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-08-20 16:17:19 +00:00
parent bb862e8221
commit 6e0ab38b9e
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

File diff suppressed because one or more lines are too long