WordPress.org

Ready to get started?Download WordPress

Forums

MailPress
[resolved] Not saving user custom fields updates (4 posts)

  1. Marco Chiesi
    Member
    Posted 2 years ago #

    Hello,
    I am using WP 3.4.1 and Mailpress 5.3 and I have a problem when I try to update the values of user custom fields from Mailpress users management interface. The custom fields simply stick with the previous value, and are not getting the new value (it's not a refresh problem, also inside the database values are not updated).
    Anybody having the same issue?

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

  2. Marco Chiesi
    Member
    Posted 2 years ago #

    I think I've found the origin of the problem: there is a discrepancy between the (html) names of the custom fields boxes used in the edit page and the ones handled by the code. In the html source they are named usermeta[] while the php code expects updatemeta and meta[].

    To fix this it is sufficient to modify the file mp-admin/user.php and change the following

    case isset($_POST['updatemeta']) :
        foreach ($_POST['meta'] as $meta_id => $meta)

    to this

    case isset($_POST['usermeta']) :
        foreach ($_POST['usermeta'] as $meta_id => $meta)

    I hope this will be fixed in the future releases.

  3. RENAUT
    Member
    Plugin Author

    Posted 2 years ago #

    will be fixed in trunk soon !

  4. RENAUT
    Member
    Plugin Author

    Posted 2 years ago #

    done !

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic