WordPress.org

Ready to get started?Download WordPress

Forums

Add Multiple Users for WordPress
Customize New User Notification Email (2 posts)

  1. Saladinz
    Member
    Posted 1 year ago #

    Hi,

    When I paste my HTML code in the "Email Message (HTML format)" field, there are many \ which appear.

    For example when I use this code:
    <body style="padding-top: 15px;">

    It becomes like that:
    <body style=\"padding-top: 15px;\">

    And it's the same thing for all my HTML code.

    I already check my HTML code in the W3C website and everything are ok.

    Could you help me on it, please?

    http://wordpress.org/extend/plugins/add-multiple-users/

  2. happynuclear
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Saladinz,

    Sorry for the slow response.

    I think this is an oversight on my part. The issue will be that your custom code is being saved into the options with the slashes, and the subsequent code that grabs this data is not stripping the slashes out of the data before adding it to an email.

    I'll definitely look into correcting this in the next version.

    In the meantime, if you know any php you could probably hack the plugin to strip the slashes out... failing that however, you may just have to eliminate the styles from the email message at the moment - anywhere the double or single quotes appear will create slashes, so things such as style="" would have to go.

    Sorry about the inconvenience!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic