- Fix bug of post boxes not saving on new posts.
- Save post boxes even if post has empty content and WordPress will not proceed in save it (so
"wp_insert_post"
is not triggered). - Introduce
"metabox-orchestra.save-on-empty-post"
hook to add the possibility to disallow box saving if content is empty.
- Added
Entity::id()
to obtain a type-safe id of wrapped entity and mark entity as not valid if its id is <= 0.
- Added three new hooks: before showing boxes and before and after saving them.
- Improved
Entity
object constructor, now accepts an instance of anotherEntity
.
- Prevent recursion when editing post/term object form inside a
BoxAction::save()
method.
- Fix a bug in Boxes class.
- Update README code sample.
- Introduce
Entity
object to wrap supported objects for metaboxes (currently\WP_Post
ad\WP_Term
) - [BREAKING]
Metabox::create_info()
new requires two arguments, the second being currentEntity
.
- Added
.travis.yml
- Added more links to README.
- Added more tests.
- Minor, no logic change to AdminNotices
- Introduce unit tests