{"action":"published","release":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/releases/3531908","assets_url":"https://api.github.com/repos/WebDevStudios/CMB2/releases/3531908/assets","upload_url":"https://uploads.github.com/repos/WebDevStudios/CMB2/releases/3531908/assets{?name,label}","html_url":"https://github.com/WebDevStudios/CMB2/releases/tag/v2.2.2","id":3531908,"tag_name":"v2.2.2","target_commitish":"master","name":"2.2.2","draft":false,"author":{"login":"jtsternberg","id":1098900,"avatar_url":"https://avatars.githubusercontent.com/u/1098900?v=3","gravatar_id":"","url":"https://api.github.com/users/jtsternberg","html_url":"https://github.com/jtsternberg","followers_url":"https://api.github.com/users/jtsternberg/followers","following_url":"https://api.github.com/users/jtsternberg/following{/other_user}","gists_url":"https://api.github.com/users/jtsternberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jtsternberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtsternberg/subscriptions","organizations_url":"https://api.github.com/users/jtsternberg/orgs","repos_url":"https://api.github.com/users/jtsternberg/repos","events_url":"https://api.github.com/users/jtsternberg/events{/privacy}","received_events_url":"https://api.github.com/users/jtsternberg/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2016-06-27T17:02:50Z","published_at":"2016-06-27T17:04:12Z","assets":[],"tarball_url":"https://api.github.com/repos/WebDevStudios/CMB2/tarball/v2.2.2","zipball_url":"https://api.github.com/repos/WebDevStudios/CMB2/zipball/v2.2.2","body":"### Enhancements\r\n\r\n* You can now set admin post-listing columns with an extra field parameter, `'column' => true,`. If you want to dictate what position the column is, use `'column' => array( 'position' => 2 ),`. If you want to dictate the column title (instead of using the field `'name'` value), use `'column' => array( 'name' => 'My Column' ),`. If you need to specify the column display callback, set the `'display_cb'` parameter to [a callback function](https://github.com/WebDevStudios/CMB2/wiki/Field-Parameters#render_row_cb). Columns work for post (all post-types), comment, user, and term object types.\r\n* Updated Datepicker styles using JJJ's \"jQuery UI Datepicker CSS for WordPress\", so props Props [@stuttter](https://github.com/stuttter), [@johnjamesjacoby](https://github.com/johnjamesjacoby). Also cleaned up the timepicker styles (specifically the buttons) to more closely align with the datepicker and WordPress styles.\r\n* CMB2 is now a lot more intelligent about where it is located in your installation. This update should solve almost all of the reasons to use the `'cmb2_meta_box_url'` filter (thought it will continue to work as expected). ([#27](https://github.com/WebDevStudios/CMB2/issues/27), [#118](https://github.com/WebDevStudios/CMB2/issues/118), [#432](https://github.com/WebDevStudios/CMB2/issues/432), [related wiki item](https://github.com/WebDevStudios/CMB2/wiki/Troubleshooting#cmb2-urls-issues))\r\n* Implement CMB2_Ajax as a singleton. Props [jrfnl](https://github.com/jrfnl) ([#602](https://github.com/WebDevStudios/CMB2/pull/602)).\r\n* Add `classes` and `classes_cb` CMB2 box params which allows you to add additional classes to the cmb-wrap. The `classes` parameter can take a string or array, and the `classes_cb` takes a callback which returns a string or array. The callback will receive `$cmb` as an argument. These classes are also passed through a new filter, `'cmb2_wrap_classes'`, which receives the array of classes as the first argument, and the CMB2 object as the second. Reported/requested in [#364](https://github.com/WebDevStudios/CMB2/issues/364#issuecomment-213223692).\r\n* Make the `'title'` field type accept extra arguments. Props [@vladolaru](https://github.com/vladolaru), [@pixelgrade](https://github.com/pixelgrade) ([#656](https://github.com/WebDevStudios/CMB2/pull/656)).\r\n* Updated `cmb2_get_oembed()` function to NOT return the \"remove\" link, as it's intended for outputting the oembed only. **This is a backwards-compatibility concern.** If you were depending on the \"remove\" link, use `cmb2_ajax()->get_oembed( $args )` instead.\r\n* New function, `cmb2_do_oembed()`', which is hooked to `'cmb2_do_oembed'`, so you can use `do_action( 'cmb2_do_oembed', $args )` in your themes without `function_exists()` checks.\r\n* New method, `CMB2:set_prop( $property, $value )`, for setting a CMB2 metabox object property.\r\n* The `CMB2_Field` object instances will now have a `cmb_id` property and a `get_cmb` method to enable access to the field's `CMB2` parent object's instance, in places like field callbacks and filters (e.g. `$cmb = $field->get_cmb();`).\r\n* Add a `data-fieldtype` attribute to the field rows for simpler identification in Javascript.\r\n* Moved each type in `CMB2_Types` to it's own class so that each field type can handle it's own field display, and added the infrastructure to maintainn back-compatibility.\r\n* New `CMB2_Utils` methods, `notempty()` and `filter_empty()`, both of which consider `null`, `''` and `false` as empty, but allow `0` (for saving `0` as a field value).\r\n* New `CMB2_Utils` public methods, `get_url_from_dir()`, `get_file_ext()`, `get_file_name_from_path()`, and `wp_at_least()`.\r\n* Add a `cmb_pre_init` Javascript event to allow overriding CMB2 defaults via JS.\r\n\r\n### Bug Fixes\r\n* Fix issue with 'default' callback not being applied in all instances. Introduced new `CMB2_Field::get_default()` method, and `'default_cb'` field parameter. Using the `'default'` field parameter with a callback will be deprecated in the next few releases. ([#572](https://github.com/WebDevStudios/CMB2/issues/572)).\r\n* Be sure to call `CMB2_Field::row_classes()` for group field rows. Also, update CSS to use the \"cmb-type-group\" classname instead of \"cmb-repeat-group-wrap\".\r\n* Introduce new `'text'` and `'text_cb'` field parameters for overriding CMB2 text strings instead of using the `'options'` array. ([#630](https://github.com/WebDevStudios/CMB2/pull/630))\r\n* Fix bug where the value of '0' could not be saved in group fields.\r\n* Fix bug where a serialized empty array value in the database for a repeatable field would output as \"Array\".\r\n* Allow for optional/empty money field. Props [@jrfnl](https://github.com/jrfnl) ([#577](https://github.com/WebDevStudios/CMB2/pull/577)).\r\n* The `CMB2::$updated` parameter (which contains field ids for all fields updated during a save) now also correctly adds group field ids to the array."}}
{"actor":{"display_login":"jtsternberg"}}