Automattic / custom-metadata

A WordPress plugin that provides an easy way to add custom fields to your object types (post, pages, custom post types, users)
https://wordpress.org/plugins/custom-metadata/
193 stars 46 forks source link

Changing order of operations in _sanitize_field_value #113

Open tmtrademark opened 10 years ago

tmtrademark commented 10 years ago

Locally, I made the datepicker field cloneable, but _sanitize_field_value chokes when strtotime() is fed an Array of values. Switching the order of sanitize_callback allows for customized sanitization of these values.

mjangda commented 10 years ago

Probably better to fix the strtotime conversion; have it handle an array input?

tmtrademark commented 10 years ago

@mjangda Now handles array input