[wp-trac] [WordPress Trac] #28693: Make gallery defaults configurable
WordPress Trac
noreply at wordpress.org
Fri Jul 4 00:11:38 UTC 2014
#28693: Make gallery defaults configurable
------------------------------------+-----------------------
Reporter: michal429 | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: Gallery | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+-----------------------
Comment (by GregLone):
Hi.
I agree. Not being able to change these default settings is very annoying.
I think there's more things to change:
'''wp-admin/js/gallery.js L215'''
{{{
if ( I('linkto-file').checked ) {
s += ' link="file"';
setUserSetting('galfile', '1');
}
if ( I('order-desc').checked ) {
s += ' order="DESC"';
setUserSetting('galdesc', '1');
}
if ( I('columns').value !== 3 ) {
s += ' columns="' + I('columns').value + '"';
setUserSetting('galcols', I('columns').value);
}
}}}
'''wp-includes/js/mce-views.js L316:'''
{{{
options = {
attachments: attachments,
columns: attrs.columns ? parseInt( attrs.columns, 10 ) : 3
};
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28693#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list