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:
Scott Taylor 2014-07-04 02:05:22 +00:00
parent 038dc75b66
commit b67b45aaa2

View File

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