| @@ -2,11 +2,11 @@ | ||
| 2 | 2 | Contributors: jtsternberg, webdevstudios, tw2113 |
| 3 | 3 | Donate link: https://cmb2.io |
| 4 | 4 | Tags: metaboxes, forms, fields, options, settings |
| 5 | 5 | Requires at least: 3.8.0 |
| 6 | -Requires PHP: 5.2 | |
| 7 | -Tested up to: 5.9 | |
| 8 | -Stable tag: 2.10.1 | |
| 6 | +Requires PHP: 7.4 | |
| 7 | +Tested up to: 7.0 | |
| 8 | +Stable tag: 2.12.0 | |
| 9 | 9 | License: GPLv2 or later |
| 10 | 10 | License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 | 11 | |
| 12 | 12 | CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind. |
| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | |
| 48 | 48 | ##### Custom Field Types |
| 49 | 49 | * [CMB2 Field Type: CMB Attached Posts Field](https://github.com/coreymcollins/cmb-attached-posts) from [coreymcollins](https://github.com/coreymcollins): `custom_attached_posts`, for attaching posts to a page. |
| 50 | 50 | * [CMB2 Field Type: Post Search Ajax](https://github.com/alexis-magina/cmb2-field-post-search-ajax) by [alexis-magina](https://github.com/alexis-magina): `post_search_ajax` Attach posts to each other. Same approach as [CMB2 Attached Posts Field](https://github.com/coreymcollins/cmb-attached-posts) but with Ajax request, multiple/single option, and different UI. |
| 51 | -* [CMB2 Field Type: CMB2 Post Search field](https://github.com/CMB2/CMB2-Post-Search-field): `post_search_text` adds a post-search dialog for searching/attaching other post IDs. | |
| 51 | +* [CMB2 Field Type: Ajax Search](https://github.com/rubengc/cmb2-field-ajax-search) from [rubengc](https://github.com/rubengc): 3 different fields with the same UI in AJAX to search (with query parameters) to users, post type and taxonomy terms. | |
| 52 | 52 | * [CMB2 Field Type: CMB2 User Search field](https://github.com/Mte90/CMB2-User-Search-field) from [Mte90](https://github.com/Mte90): `user_search_text` adds a user-search dialog for searching/attaching other User IDs. |
| 53 | 53 | * [CMB2 Field Type: Google Maps](https://github.com/mustardBees/cmb_field_map) from [mustardBees](https://github.com/mustardBees): Custom field type for Google Maps. |
| 54 | 54 | > The `pw_map` field stores the latitude/longitude values which you can then use to display a map in your theme. |
| 55 | 55 | |
| @@ -86,8 +86,9 @@ | ||
| 86 | 86 | * [CMB2 Field Type: Link](https://github.com/scottsawyer/cmb2-field-link) by [scottsawyer](https://github.com/scottsawyer): Create a link field with some attributes. Very nice for styling links. |
| 87 | 87 | * [CMB2 Field Type: Widget Selector](https://github.com/scottsawyer/cmb2-field-widget-selector) by [scottsawyer](https://github.com/scottsawyer): Need a field that lets you ( or your editor ) select / display an existing widget instance? Then this is the plugin for you. |
| 88 | 88 | |
| 89 | 89 | ##### Other Helpful Resources |
| 90 | +* [CMB2 WooCommerce HPOS Orders](https://github.com/CMB2/cmb2-woocommerce-hpos-orders): Adds the ability to add custom fields to the new WooCommerce HPOS orders page. | |
| 90 | 91 | * [CMB2 Admin Extension](https://github.com/twoelevenjay/CMB2-Admin-Extension): Adds a UI to create CMB2 meta boxes from the WordPress admin. Also on [wordpress.org](https://wordpress.org/plugins/cmb2-admin-extension/). |
| 91 | 92 | * [WordPress Shortcode Button](https://github.com/jtsternberg/Shortcode_Button): Uses CMB2 fields to generate fields for shortcode input modals. |
| 92 | 93 | * [WDS-Simple-Page-Builder](https://github.com/WebDevStudios/WDS-Simple-Page-Builder): Uses existing template parts in the currently-active theme to build a customized page with rearrangeable elements. Built with CMB2. |
| 93 | 94 | * [CMB2 Example Theme](https://github.com/CMB2/CMB2-Example-Theme): Demonstrate how to include CMB2 in your theme, as well as some cool tips and tricks. |
| @@ -137,11 +138,44 @@ | ||
| 137 | 138 | FAQ's usually end up in the [github wiki](https://github.com/CMB2/CMB2/wiki). |
| 138 | 139 | |
| 139 | 140 | == Changelog == |
| 140 | 141 | |
| 142 | +### 2.12.0 | |
| 143 | + | |
| 144 | +#### Enhancements | |
| 145 | +* Confirmed compatibility with PHP 8.2 and 8.3, and tested up to WordPress 7.0. | |
| 146 | +* [Development] Migrated end-to-end testing from Cypress to Playwright and replaced Grunt with npm scripts for the asset build pipeline. ([#1550](https://github.com/CMB2/CMB2/pull/1550)). | |
| 147 | +* [Development] Moved the local development and test environment to `@wordpress/env` (wp-env) on pinned ports, running both PHPUnit and Playwright through it. ([#1554](https://github.com/CMB2/CMB2/pull/1554), [#1558](https://github.com/CMB2/CMB2/pull/1558)). | |
| 148 | +* [Development] Replaced Travis CI with GitHub Actions, added a PHPCompatibility check (PHP 7.4+) and a PHPCS/WPCS lint gate, and overhauled `install-wp-tests.sh` for modern WordPress. ([#1555](https://github.com/CMB2/CMB2/pull/1555)). | |
| 149 | + | |
| 150 | +#### Bug Fixes | |
| 151 | +* Fixed a PHP 8.1+ deprecation when sanitizing an empty `textarea`-based field (passing `null` to `wp_kses_post()`). Props [@baljindersingh88](https://github.com/baljindersingh88) ([#1537](https://github.com/CMB2/CMB2/pull/1537)). | |
| 152 | +* Fixed row iterator value desync between the data attribute and jQuery data when reordering repeatable group rows. Props [@angryaxi](https://github.com/angryaxi) ([#1518](https://github.com/CMB2/CMB2/pull/1518)). | |
| 153 | +* Fixed a PHP 8.3 `ltrim()` deprecation in the taxonomy field display. | |
| 154 | +* Hardened against PHP 8.2+ dynamic property deprecations by widening `#[AllowDynamicProperties]` to the class roots. | |
| 155 | +* Removed a focus-background rule on `.cmb2-wrap` inputs that caused unexpected input styling. Fixes [#1556](https://github.com/CMB2/CMB2/issues/1556) ([#1557](https://github.com/CMB2/CMB2/pull/1557)). | |
| 156 | + | |
| 157 | +### 2.11.0 | |
| 158 | + | |
| 159 | +#### Enhancements | |
| 160 | +* Package updates. | |
| 161 | +* Update WordPress Tested up to tag 6.1. Props [@RubenMartins](https://github.com/RubenMartins) ([#1477](https://github.com/CMB2/CMB2/pull/1477)). | |
| 162 | +* Add filters for setting `object_id` and `mb_object_type` and in `do_scripts` - Allows overriding by plugins/libs. (Added to support the new [CMB2 WooCommerce HPOS Orders](https://github.com/CMB2/cmb2-woocommerce-hpos-orders) extension) | |
| 163 | +* Added a `cmb2_init_hooks` hook when hookup is called. | |
| 164 | +* Addressed some security concerns with the unserialization process for the stored serialized `DateTime` field values (`text_datetime_timestamp_timezone` field type only). ([#1510](https://github.com/CMB2/CMB2/pull/1510)) | |
| 165 | +* [Development] Some build script improvements. | |
| 166 | +* [Development] Added some PHPCS/WPCS config. | |
| 167 | +* [Development] Added a phpcompatibility action. Props [@jazzsequence](https://github.com/jazzsequence) ([#1499](https://github.com/CMB2/CMB2/pull/1499), [#1500](https://github.com/CMB2/CMB2/pull/1500)). | |
| 168 | + | |
| 169 | +#### Bug Fixes | |
| 170 | +* Fix some line-height issues with dashicon buttons. Fixes [#1443]( | |
| 171 | +* Fix issue where image can be attached to wrong group after removing previous group. ([#1473](https://github.com/CMB2/CMB2/pull/1473)) | |
| 172 | +* Fixes issue where Select/Deselect all does not trigger change JS DOM events. Fixes [#1504](https://github.com/CMB2/CMB2/issues/1504). | |
| 173 | + | |
| 141 | 174 | ### 2.10.1 |
| 142 | 175 | |
| 143 | 176 | #### Bug Fixes |
| 177 | + | |
| 144 | 178 | * Fix issue with date picker formatting. Fixes [#1448](https://github.com/CMB2/CMB2/issues/1448). |
| 145 | 179 | |
| 146 | 180 | ### 2.10.0 |
| 147 | 181 | |
| @@ -1011,11 +1045,29 @@ | ||
| 1011 | 1045 | * Think we have a release that is mostly working. We'll say the initial release :) |
| 1012 | 1046 | |
| 1013 | 1047 | == Upgrade Notice == |
| 1014 | 1048 | |
| 1049 | +### 2.11.0 | |
| 1050 | + | |
| 1051 | +#### Enhancements | |
| 1052 | +* Package updates. | |
| 1053 | +* Update WordPress Tested up to tag 6.1. Props [@RubenMartins](https://github.com/RubenMartins) ([#1477](https://github.com/CMB2/CMB2/pull/1477)). | |
| 1054 | +* Add filters for setting `object_id` and `mb_object_type` and in `do_scripts` - Allows overriding by plugins/libs. (Added to support the new [CMB2 WooCommerce HPOS Orders](https://github.com/CMB2/cmb2-woocommerce-hpos-orders) extension) | |
| 1055 | +* Added a `cmb2_init_hooks` hook when hookup is called. | |
| 1056 | +* Addressed some security concerns with the unserialization process for the stored serialized `DateTime` field values (`text_datetime_timestamp_timezone` field type only). ([#1510](https://github.com/CMB2/CMB2/pull/1510)) | |
| 1057 | +* [Development] Some build script improvements. | |
| 1058 | +* [Development] Added some PHPCS/WPCS config. | |
| 1059 | +* [Development] Added a phpcompatibility action. Props [@jazzsequence](https://github.com/jazzsequence) ([#1499](https://github.com/CMB2/CMB2/pull/1499), [#1500](https://github.com/CMB2/CMB2/pull/1500)). | |
| 1060 | + | |
| 1061 | +#### Bug Fixes | |
| 1062 | +* Fix some line-height issues with dashicon buttons. Fixes [#1443]( | |
| 1063 | +* Fix issue where image can be attached to wrong group after removing previous group. ([#1473](https://github.com/CMB2/CMB2/pull/1473)) | |
| 1064 | +* Fixes issue where Select/Deselect all does not trigger change JS DOM events. Fixes [#1504](https://github.com/CMB2/CMB2/issues/1504). | |
| 1065 | + | |
| 1015 | 1066 | ### 2.10.1 |
| 1016 | 1067 | |
| 1017 | 1068 | #### Bug Fixes |
| 1069 | + | |
| 1018 | 1070 | * Fix issue with date picker formatting. Fixes [#1448](https://github.com/CMB2/CMB2/issues/1448). |
| 1019 | 1071 | |
| 1020 | 1072 | ### 2.10.0 |
| 1021 | 1073 | |