mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
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:
parent
bb862e8221
commit
6e0ab38b9e
@ -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 );
|
||||
|
2
wp-includes/js/media-views.min.js
vendored
2
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user