Releases: wpmetabox/meta-box
Releases · wpmetabox/meta-box
4.8.1
4.8.0
- Improvement: rewrite the way the plugin loads file, which allows developers to include the plugin into themes/plugins simply by include the main file. The new loading mechanism also uses autoloading feature which prevents loading files twice and saves memory.
- Improvement: rewrite
user
,post
,taxonomy
fields using the same codebase as they're native WordPress objects and sharing similar options. Also changes the syntax of query parameters for these fields (old syntax still works). Please see docs for details. - Improvement: add
srcset
in the returned value of helper function for image fields - Improvement: better sanitize value for
url
field - Improvement: prevent issues with dashes in field types
- Improvement: remove redundant value in checkbox
- Improvement: update CSS for date, time fields
- Improvement: select2 now updated to 4.0.1
- Improvement: optimize code for
file_advanced
andimage_advanced
fields which now submit array of values when saving instead of single CSV value - Improvement: add
collapse
option tocheckbox_list
andcheckbox_tree
inuser
,taxonomy
,post
fields which prevents plugin save parent values. - Improvement: secure password field so it is no longer saved in plain text. To check if a password matches the hash, please use
wp_check_password
. - Improvement: change the output of
color
field in the helper function. Now it shows the color instead of hex value. - Improvement: add
color:change
andcolor:clear
JavaScript event for detecting changes incolor
field. - Improvement: refactor code for better structure and security
- Fix: rewrite the JavaScript for cloning which causes bugs for date field.
- Fix: fix missing attributes if value is '0' or 0.
- Fix: add missing
class
attribute for fields - Fix: do not auto populate color field with '#'
- Fix: wrong callback for fix page template
4.7.3
- Improvement: add
change
event forfile_advanced
andimage_advanced
fields. - Improvement: add support for boolean attributes.
- Improvement: add support for boolean attributes.
- Improvement: add Russian language.
- Improvement: changed
wp_get_post_terms
toget_the_terms
to use WordPress cache. - Improvement: refactored code to make textarea, select use attributes.
- Improvement:
fieldset_text
now cloneable. Also removedrows
option for this field. - Improvement: refactored
has_been_saved()
function.
4.7.2
4.7.1
4.7
- Improvement: add
attributes
for all input fields (text, number, email, ...) so users can add any custom attributes for them. Also added default attributesrequired
,disabled
,readonly
,maxlength
andpattern
for those fields as well. These attributes will be merged into theattributes
. - Improvement: add
js_options
for color field which allows users to define custom color palettes and other attributes for color picker. See the options in Iris page. - Fix: fix for file and image uploaded via
file_advanced
andimage_advanced
not showing up.
4.6
- Improvement: the plugin translation is now handled in translate.wordpress.org. While the plugin keeps old translation as backward compatibility, it's recommended to translate everything in translate.wordpress.org. Language packs will be automatically updated by WordPress.
- Improvement: rewrite code for
file_advanced
andimage_advanced
, which share the same code base. These fields are now clonable and not autosave (you have to save post to save files)! Props @funkatronic. - Improvement: restyle clone icon, sort clone icon and add clone button for better UI. The new UI now is compatible with
color
anddate
fields - Improvement: separate validation module into 1 class, for better code structure
- Improvement: add
pattern
attribute forurl
field - Improvement: improve code quality
- Fix: missing "checked" when clone radio
- Fix: language file name for Dutch
- Fix: oembed not render preview if provider is added via
wp_embed_register_handler
4.5.7
- Fix: Always set std as value for hidden field
- Fix:
rwmb_meta
now can display rich content fromoembed
field - Fix: Wrong format for
datetime
field - Fix: Check and reset clone index when add/remove/sort clones
- Improvement: Optionally display ID attribute for heading and divider
- Improvement: Adding new style to date field to match WordPress style
- Improvement: Change saving hooks to specific post types to prevent saving images to wrong post