WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Custom fields which contain quotes (2 posts)

  1. bankofcanada
    Member
    Posted 1 year ago #

    When creating and editing a group, multiple value fields (select/radio/etc.) that contain single quote characters appear correctly. When editing a post or retrieving the data from post meta (for use on the front end), the values are escaped with a back-slash.

    Steps to reproduce:
    1) create a group
    2) add a select box
    2a) add option value "something"
    2b) add option value "something with '"
    3) save the group
    4) edit a post

    Expected result:
    The select box should contain 2 options:
    - something
    - something with '

    Actual result:
    The select box contains:
    - something
    - something with \'

    NOTES:
    When viewing the group again after seeing this result the values are displayed properly.
    Using Types 0.9.4.2 and 1.0.4.

    http://wordpress.org/extend/plugins/types/

  2. Srdjan
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for reporting. We'll check that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.