The MCE view for galleries needs to read wp.media.galleryDefaults.columns
after [28990].
See #28693. git-svn-id: https://develop.svn.wordpress.org/trunk@28991 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
038dc75b66
commit
b67b45aaa2
@ -377,7 +377,7 @@ window.wp = window.wp || {};
|
||||
|
||||
options = {
|
||||
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 );
|
||||
|
Loading…
Reference in New Issue
Block a user