The MCE view for galleries needs to read `wp.media.galleryDefaults.columns` after [28990].
See #28693. Built from https://develop.svn.wordpress.org/trunk@28991 git-svn-id: http://core.svn.wordpress.org/trunk@28779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1571d3c47c
commit
1637dbe164
|
@ -377,7 +377,7 @@ window.wp = window.wp || {};
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
attachments: attachments,
|
attachments: attachments,
|
||||||
columns: attrs.columns ? parseInt( attrs.columns, 10 ) : 3
|
columns: attrs.columns ? parseInt( attrs.columns, 10 ) : wp.media.galleryDefaults.columns
|
||||||
};
|
};
|
||||||
|
|
||||||
return this.template( options );
|
return this.template( options );
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue