This repository has been archived by the owner on Dec 17, 2018. It is now read-only.
v1.0.2
Enhancements
- Change the way the
'cmb_validate_{$field['type']}'
filter works.
It is now passed a null value vs saved value. If null is returned, default sanitization will follow. THIS IS A BREAKING CHANGE. If you're already using this filter, take note. - All field types that take an option array have been simplified to take
key => value
pairs (vsarray( 'name' => 'value', 'value' => 'key', )
). This effects the 'select', 'radio', 'radio_inline' field types. The 'multicheck' field type was already using thekey => value
format. Backwards compatibility has been maintained for those using the older style. - Added default value option for
taxonomy_select
field type. props @darlantc - Added option to specify image preview size for
file_list
field type. props @IgorCode - Updated
file_list
images to be displayed horizontally instead of vertically. props @IgorCode - Use
get_the_terms
where possible since the data is cached.
Bug Fixes
- Fixed wysiwyg escaping slashes. props @gregrickaby
- Replaced
__DIR__
, asdirname( __FILE__ )
is easier to maintain back-compatibility. - Fixed missing table styling on new posts. @mustardBees
- Fix undeclared JS variable. @veelen
- Fix
file_list
errors when removing all files and saving. - Set correct
object_id
to be used later incmb_show_on
filter. @lauravaq - Fix sanitization recursion memeory issues.