Skip to content

4.11

Compare
Choose a tag to compare
@rilwis rilwis released this 04 Jul 05:37
· 1483 commits to master since this release
  • 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 and RWMB_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.
  • 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.
  • 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: