Automattic/custom-metadata — pull request #93 by connerbw (2013-09-14 01:50:59+00:00)
Title: Fix awkward checkbox HTML, Fix unexpected array bug

She's two patches, two patches in one?
http://www.youtube.com/watch?v=TSM5kSHXxZ8

# 845fee1

This patch was never integrated?

A WordPress.org topic was closed a year ago, but Jeremy Clarke's issue never addressed, nor was the patch ever integrated.

I have the exact same problem and have integrated the patch he posted in his thread.

@see:

http://wordpress.org/support/topic/plugin-custom-metadata-manager-checkbox-display-is-confusing-labels-should-be-next-to-checkbox#post-2599480
https://gist.github.com/jeremyclarke/1725905

# c54ba65

Using the plugin before, we had bugs where arrays were being sent to fields expecting text, and vice versa.

This patch:

* Removes a leftover debug echo
* Instead loading and saving possible garbage, sanitize values by using available "multiple fields" class properties to determine whether or not data should be an array.

---

Thank you for your consideration.

Best regards,