Releases: wpmetabox/meta-box
Releases · wpmetabox/meta-box
4.11.2
- Introducing storage interface, which now can be extended for term/user/settings page under the same codebase. With this improvement, helper functions now works for term/user/settings page (require premium extensions).
- Fixed cloning
wysiwyg
field when tinyMCE mode is turned off (only show quick tags). - Fixed
image_upload
&file_upload
field doesn't add attachment to post - Fixed
text_list
fields not saving correctly when edit not last field. #1117. - Update Persian translation. Credit Morteza Gholami.
4.11.1
- Added button for "Check/Uncheck all options" in input list field when type is
checkbox_list
. Props @mrbrazzi. - Select multiple images now does not require to press "Shift".
- Change button field to actual button element. #1108.
- Fix scripts and styles dependencies.
- Fix bug for select tree when parent not set
- Add sanitize post type in case users use CamelCase in post type name. #1109.
- Increase z-index of datepicker to prevent overlap with top menu bar. #1112.
- Make compatible with MB Admin Columns and MB Frontend Submission extensions
- Update Persian translation. Credit Morteza Gholami
4.11
- Code architecture update:
- Add
object_id
property to the meta box object. Used to connect the meta box to the post object. Not heavily used yet. - Add
RWMB_Meta_Box_Registry
andRWMB_Field_Registry
to store all registered meta boxes and fields. Used to future access these objects. Use internally only. 3rd-party code should not use it as it's still experimental and can change in the future. - Deprecated
RWMB_Core::get_meta_boxes()
due to the meta box registry above. This function was made for internally use only. 3rd-party code should not rely on it. - Add magic method
__get
to the meta box object to quick access to meta box configuration.
- Add
- UI update:
- Make the field label bold (similar to WordPress settings page).
- Increase margin between fields and change color for remove clone button (also reduce minus size)
- Remove style for checkbox (default is good).
- Improve styles for checkbox/radio list
- A little smaller padding for select box. Also remove default size for select[multiple]
- Add a little space between the map canvas and the "Find Address" button
- Media fields:
- Media field update: Hidden field for media fields now no longer disabled. If media field js not loaded properly, code will default to hidden field and process accordingly. #1088.
- Better and simpler way to handle HTML file upload using
media_handle_upload
function. - Rewrite JS for "file", simpler and modular. Also fix bug when add/remove items that doesn't toggle the Add more link correctly.
- Improve JS code for media field, using MediaList instead of item views (Backbone JS code).
- Add support for image sizes in image_advanced and image_upload. Default is thumbnail. Fixes #425.
- Clone:
- Add new parameter
add_button
for the add new clone button text. Better than use filter. - Fix position for remove clone button in RTL languages
- Update margin between clones and set clone placeholder = outer height of the cloned element.
- Add new parameter
- Scripts and styles:
- Check condition for enqueueing scripts & styles only in the admin.
- Update the time picker library to the latest version (1.6.3) to supports "select" control for time picker. See demo.
- Better dependencies for date picker CSS, autocomplete field.
- Other improvements:
- Remove the static helper class because of a bad OOP code.
- Fix get plugin URL symlink when plugin is put in a theme and symlinked. Props @tutv95.
- Add support for "region" in the map field to limit autocomplete from wrong entries (to help preventing from entering wrong address or country). See https://developers.google.com/maps/documentation/geocoding/intro#RegionCodes
4.10.4
- Improvement: Add support for validate user edit and term edit forms (requires MB Term Meta or MB User Meta extension).
- Improvement: Add new parameter
label_description
for fields to display a description below field label (name). - Improvement: Add support for edit custom fields in the media modal. Requires
post_type
set toattachment
andmedia_modal
set to true. See demo. - Improvement: For WPML users: Add support to hide fields in "Do not translate" mode and disable editing fields in "Copy" mode.
- Fix: Users can't select same images for 2 different
image_advanced
fields. - Fix:
max_status
doesn't work.
4.10.3
4.10.2
- Improvement: Add
max_file_size
to upload fields (File_Upload
,Image_Upload
,Plupload_Image
). - Improvement: Add support for attributes for file input.
- Improvement: Update Polish translation.
- Improvement: Add translation support for Key and Value strings (@prop saqibsarwar).
- Fix: Shorter width of email field vs. other fields (@prop saqibsarwar).
- Fix: Fix cloneable datetime field with timestamp=true.
- Fix: Remove margin bottom in select_advanced options.
- Fix: Showing the correct selected value for select_advanced field when the option value contains '&' character.
- Fix: Fix default values not working with taxonomy and taxonomy_advanced fields.
4.10.1
4.10
- Improvement: Add
video
field type which allows users to upload or select video from the Media Library. See demo. - Improvement: Update Turkish. Prop Emre Tuna tunaemre@windowslive.com.
- Improvement: Use WP 4.6 date picker localization instead of JS localized file to reduce plugin size.
- Improvement: Refactor the media fields for better performance. Add
change
event for item list when add, remove or reset. - Fix:
taxonomy_advanced
field now can be cloned. - Fix: Make localize_script works with WP 4.1.