jaredatch/Custom-Metaboxes-and-Fields-for-WordPress — Issue #124: double quotes in text field delete text after quote
Author: danielwiener
Created: 2012-02-22 18:30:55+00:00
State: open

Jared,
Thanks for Custom Metaboxes. I used to write them myself but am very happy that I don't have to anymore and I can use your library. I like it better than the plugins too.

I am working on an artist's site and have created a field for Dimensions that has entries like 12"x24"x32". I am using the field type called "text" - just the basic one line text field. When i first publish/update the Dimensions field it seems to work but if I make a correction and update again everything after the first double quote is deleted from the field. Using the example above only 12 appears. My guess is that the double quotes are not being escaped somewhere in the process. If you were to fix this, offer me a workaround I would appreciate it a great deal. Or, if you point me in the right direction in your library, I can attempt to fix it myself and add it to the mix.

Note: I just checked the database and truncated Dimension (12, in this instance) is entered in the database.

Thanks

Daniel