• Resolved Jess

    (@jcull76)


    When pasting Paypal code for a Buy Now button with multiple options into the text editor (not visual), WordPress adds extra <select> tags between the option values.

    Affected code directly from Paypal:

    <tr><td><input type="hidden" name="on0" value="Fall Con Registration">Fall Con Registration</td></tr><tr><td><select name="os0">
    	<option value="Registration">Registration $80.00 USD</option>
    	<option value="Sponsor/Adult Registration">Sponsor/Adult Registration $50.00 USD</option>
    	<option value="Youth Staff Registration">Youth Staff Registration $60.00 USD</option>
    	<option value="Bus Fee">Bus Fee $65.00 USD</option>
    </select> </td></tr>

    Affected code once I save or switch to the Visual editor and back again:

    <td><input name="on0" type="hidden" value="Fall Con Registration" />Fall Con Registration</td>
    </tr>
    <tr>
    <td>
    <select name="os0"><option value="Registration">Registration $80.00 USD</option></select>
    <select name="os0"><option value="Sponsor/Adult Registration">Sponsor/Adult Registration $50.00 USD</option></select>
    <select name="os0"><option value="Youth Staff Registration">Youth Staff Registration $60.00 USD</option></select>
    <select name="os0"><option value="Bus Fee">Bus Fee $65.00 USD</option></select></td>
    </tr>

    This makes multiple drop downs appear on the button instead of one drop down from which a user selects one option.

    The only plugin I have that should make any difference is TinyMCE Advanced, and deactivating that does not change this behavior.

    I have not had this problem until about a week ago, when I assumed the code was wrong on Paypal’s end. I was able to delete the unwanted tags with no problem then. Today, however, deleting the extra <select> tags doesn’t stick – they keep coming back. Yes, I’m getting the opening and closing tags when I delete. And I’ve double checked – Paypal’s code is fine on their end. The change happens in the Text Editor.

    It also happens on different sites with different configurations – I’ve tried the same code on three separate sites. The behavior is the same for both 3.9.1 and 3.9.2. I’m don’t know about 3.9 as I don’t have any sites running that version or earlier.

    I have to be able to use the Visual Editor on a post with Paypal code in it! Any ideas what’s going on here??

    Edit to add:

    There is a bug report on this, but the unintelligible comments say that it is “fixed” without telling how to fix it. Little help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Jess

    (@jcull76)

    I suppose that might be an okay short term solution, but what I really need to know is how to deal with the patch that supposedly exists on Trac? Can’t find instructions anywhere as to what to do with the information on the bug report. Because this is definitely a bug that needs fixing!!

    Thread Starter Jess

    (@jcull76)

    Found a workable solution besides short codes (which totally work, but with the number of these I have to post, my functions file would get insane!):

    Take out line breaks between the <option> </option> lines, and the <select> tags don’t appear.

    Still a pain, but at least it works. Marking this topic resolved, but the bug still exists.

    Thread Starter Jess

    (@jcull76)

    Update: The most recent upgrade for WordPress seems to have squashed this bug.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Text editor changes Paypal code’ is closed to new replies.