It should be possible to set an attribute to false. Within the Base::transform_object_properties() function this does not work anymore:
|
if ( ! empty( $value ) ) { |
Introduced in #1301
Updates Base::transform_object_properties() and Base_Object::to_array() to not only discard null values but also empty values unless they're false.
Seems like empty( false ) evaluates to true, which I also did not know.