jaredatch/Custom-Metaboxes-and-Fields-for-WordPress — Issue #73: Separate datepicker and timepicker scripts
Author: GaryJones
Created: 2011-12-31 17:29:12+00:00
State: open

The datepicker and timepicker scripts are self contained jQuery plugins, so they should be in standalone file, separate from the custom cmb scripts.

If a user wants to update (or downgrade) a version of either plugin, they have to amend the CMB scripts file, and if they later update to a newer version of CMB and forget they'd made a change, then their amendments get overwritten.

Having them as separate files also means that they only need to be enqueued when a datapicker or timepicker setting is registered to be shown.

Having the custom CMB scripts means that it can linted far easier, and have a minified production version included as well.