WordPress.org

Ready to get started?Download WordPress

Forums

Verve Meta Boxes
BUG: 'select' field doesn't handle single quotes correctly (2 posts)

  1. Michelle
    Member
    Posted 2 years ago #

    The first time it's displayed in the custom meta box, everything works great, but if you "Update" the post more than once it adds a \ before each single quote.

    So for example,

    Women's Fiction

    saves correctly once, then on second save the custom field changes to:

    Women\'s Fiction

    AND the dropdown list changes to use Women\'s Fiction from that point on for all posts and in the VMB admin display.

    http://wordpress.org/extend/plugins/verve-meta-boxes/

  2. Michelle
    Member
    Posted 2 years ago #

    You can fix this (and the same thing happening with checkboxes) by replacing all instances of

    $o

    with

    stripcslashes($o)

    in these lines of verve-meta-boxes.php, version 1.2.8:

    lines 373 - 377

    and

    lines 412 - 424

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic