Skip to content

@jtsternberg jtsternberg released this Jan 21, 2019 · 39 commits to develop since this release

Enhancements

  • Updated PHPUnit version in composer.json. Props @slaFFik (#1204).
  • Package.json: fix the need of global (old) grunt. Props @slaFFik (#1206).
  • Add optional confirmation dialog to group field's Remove button. Example documented in the example functions file. Props @slaFFik (#1208).
  • Add 'id' attribute on group field .postbox divs to ensure compatibility with scripts which expect ids there. Props @amans2k (#1108).
  • Make CMB2_Option properties accessible. (#1052)
  • New Before/After row hooks: 'cmb2_before_field_row', "cmb2_before_{$field_type}_field_row", "cmb2_after_{$field_type}_field_row", 'cmb2_after_field_row'. Props @rubengc (#953).
  • Introduce three new filters to filter field arguments: 'cmb2_field_defaults', 'cmb2_field_arguments_raw', 'cmb2_field_arguments'. Props @jrfnl (#588).

Bug Fixes

  • Remove superfluous method definitions. Props @tnorthcutt (#1200).
  • Fix rest_value_cb registering of filter. Props @lipemat (#1212).
  • Do not trigger tinyMCE editor save for the activeEditor. Prevents cursor jump in Gutenberg. Fixes #1202
  • Fix issue where making a field repeatable would generate a Javascript error because of missing sortable library. Props @slaFFik (#1216).
  • Ensure value passed to CMB2_Utils::filter_empty from CMB2::save_group_field is always an array. (#1026)
  • Fix potential issue with test path location. Props @quasel (#463).
Assets 2

@jtsternberg jtsternberg released this Dec 10, 2018 · 105 commits to develop since this release

Bug Fixes

  • Fix issue when the core/editor object does not exist (is undefined), causing incompatibility issues with Yoast and likely others. Fixes #1197
Assets 2

@jtsternberg jtsternberg released this Dec 8, 2018 · 107 commits to develop since this release

Enhancements

  • Repeatable fields are now drag-sortable. Props @lipemat (#1142).
  • Update the sv_SE translation. Props @edvind (#370).
  • QA/PHPCS cleanup. Props @tw2113 (#1179).
  • Add optional 'mb_callback_args' CMB2 box property which allows defining the $callback_args passed into add_meta_box(). This allows using defining the new Gutenberg/block-editor compatibility parameters. Fixes #1191
  • Support any type of markup when customizing repeating group row. Props @lipemat (#1187).
  • Add cmb_init_pickers and cmb_init_code_editors Javascript events for allowing just-in-time configuration for pickers/editors.
  • Fix field descriptions color contrast ratio for better accessibility. h/t @rianrietveld. Fixes #1193.
  • Add CMB2_Field::get_rest_value() method for sending value through several filters ('cmb2_get_rest_value', "cmb2_get_rest_value_{$field_type}", "cmb2_get_rest_value_for_{$field_id}" ) before sending to REST request.

Bug Fixes

  • Fix the options page errors when using CMB2 in WordPress prior to 4.7. Props @manzoorwanijk (#1166).
  • Fix occasonal fatal errors that can occur by using callback functions directly vs call_user_func. Props @manzoorwanijk (#1177).
  • Fix issue where wysiwyg fields' visual tab wouldn't save content on Gutenberg/block-editor posts. Props @staurand (#1190 fixes #1156).
  • Fix issue when remove_default wouldn't actually remove the default taxonomy metabox when box registration used an alternate box context. Props @lipemat (#1147).
Assets 2

@jtsternberg jtsternberg released this May 29, 2018 · 58 commits to trunk since this release

Bug Fixes

  • Do not enqueue/register WordPress code editor JS if there are no textarea_code fields registered on the page. Fixes #1110.
  • Do not set repeated wysiwyg field values to string "false" when boolean false. Fixes #1138 (again!).
Assets 2

@jtsternberg jtsternberg released this May 25, 2018 · 176 commits to develop since this release

Bug Fixes

  • Do not set repeated field values to string "false" when boolean false. Fixes #1138.
Assets 2

@jtsternberg jtsternberg released this May 25, 2018 · 179 commits to develop since this release

Enhancements

  • Enable linking options pages via tabbed-navigation. Will output tabbed navigation for options-pages which share the same 'tab_group' CMB2 box property. This snippet demonstrates how to create a top-level menu options page with multiple submenu pages, each with the tabbed navigation. To specify a different tab title than the options-page title, set the 'tab_title' CMB2 box property. See #301, #627.

  • Complete the zh-CN translation. Props @uicestone (#1089).

  • Update the nl_NL translation. Props @tammohaannl (#1101).

  • Better display for white over transparent images (e.g. logos) by using a checkered background for images. (#1103)

  • Ability to disable the options autoload parameter via filter ("cmb2_should_autoload_{$options_key}") or via a box parameter for 'options-page' box registrations ('autoload' => false,). (#1093)

  • 'textarea_code' field type now uses CodeMirror that is used by WordPress (#1096). A field can opt-out to return to the previous behavior by specifying an 'options' parameter:
    'options' => array( 'disable_codemirror' => true )
    As with the other javascript-enabled fields, the code-editor defaults can be overridden via a data-codeeditor attribute. E.g:

     'attributes' => array(
     	'data-codeeditor' => json_encode( array(
     		'codemirror' => array(
     			'mode' => 'css',
     		),
     	) ),
     ),
  • Improve/add comment info banners at top of CMB2 CSS files.

  • Added resetBoxes/resetBox Javascript methods for resetting CMB2 box forms.

  • Improved styles for fields in the new-term form.

  • New CMB2_Boxes methods for filtering instances of CMB2, CMB2_Boxes::get_by( $property, $optional_compare ) and CMB2_Boxes::filter_by( $property, $to_ignore = null ).

Bug Fixes

  • Fix the 'taxonomy_*' fields when used for term fields/meta. Save the value to term-meta.
  • Clear the CMB2 fields when a term is added. Fixes #794.
  • Repeated fields now use registered field defaults for values. Fixes #1137.
  • Fixed the formatting for deprecated messages in the log.
  • Prevent opening of media modal when clicking the file "Download" link. Fixes #1130.
Assets 2

@jtsternberg jtsternberg released this Dec 20, 2017 · 273 commits to develop since this release

Enhancements

Bug Fixes

  • Update for compatibility with PHP 7.2 (e.g. fixes Fatal error: Declaration of CMB2_Type_Colorpicker::render() must be compatible with CMB2_Type_Text::render($args = Array)...). (#1070, #1074, #1075).
Assets 2

@jtsternberg jtsternberg released this Nov 27, 2017 · 278 commits to develop since this release

  • Fix another issue (introduced in 2.2.6) with repeatable fields not being able to save additional fields. Props @anhskohbo (#1059, #1058).
  • Only dequeue jw-cmb2-rgba-picker-js script (and enqueue our wp-color-picker-alpha) if it is actually found.
Assets 2

@jtsternberg jtsternberg released this Nov 24, 2017 · 285 commits to develop since this release

Enhancements

  • Merge in the CMB2 RGBa Colorpicker field type functionality to the CMB2 colopicker field type. Adds the ability to add an alpha (transparency) slider to the colorpicker by adding the 'alpha' option to the field options array. Thank you to JayWood for his work on his custom field type.

Bug Fixes

  • Fix issue (introduced in 2.2.6) with complex fields set as repeatable not being able to save additional fields. Fixes #1054.
Assets 2

@jtsternberg jtsternberg released this Nov 14, 2017 · 298 commits to develop since this release

Enhancements

  • Move the fetching of group label and description to after calling 'before_group' parameter.
  • Allow using the 'render_row_cb' param for group fields. Fixes #1041.
  • Allow resetting cached CMB2 field objects (new 3rd parameter to CMB2::get_field()).
  • Allow resetting cached callback results (CMB2_Base::unset_param_callback_cache()).
  • Persian translation provided by @reza-irdev (#1046).
  • Added a 'message_cb' box property, which allows defining a custom callback for adding options-save messages on options-page boxes. An example has been added to example-functions.php.
  • Updated many the oembed-related unit tests to more reliably test the relevant parts, and not so much the actual success of the WordPress functions.
  • Updated travis config to Install PHP5.2/5.3 on trusty for unit tests. Stolen from gutenberg/pull/2049. Intended to compensate for Travis removing support for PHP 5.2/5.3.

Bug Fixes

  • Ensure 'file' field type ID is removed from the database if the 'file' field type's value is empty (Support thread).
  • Fix JS errors when user_can_richedit() is false ("Disable the visual editor when writing" user option is checked, or various unsupported browsers). See #1031.
  • Fix issue where some European date formats (e.g. F j, Y) would not properly translate into jQuery UI date formats. Support thread
  • Fix repeating fields within repeating groups having the values/indexes incorrectly associated. Props @daggerhart (#1047). Fixes #1035, #348.
  • Fixed multiple update messages on settings pages when CMB2 option pages were registered (#1049).
  • Fix issue where using multiple oembed fields could cause incorrectly cached arguments to be used.
  • Fix bug where 'select_all_button' => false was not working for 'taxonomy_multicheck' field type (#1005).
Assets 2
You can’t perform that action at this time.