[wp-trac] [WordPress Trac] #35008: Ampersands in URLs are no longer converted to entities

WordPress Trac noreply at wordpress.org
Fri Dec 11 11:26:53 UTC 2015


#35008: Ampersands in URLs are no longer converted to entities
----------------------------+-------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  4.4.1
Component:  Formatting      |    Version:  4.4
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-------------------
 Reported by @hoveroverus on support forums.

 1. Go to Add New Post screen.
 2. Switch from TinyMCE to the Text editor.
 3. Paste this to the textarea: `& <a
 href="http://example.com/?a=1&s=2&hl=3">test</a>`.
 4. Click the Preview button.

 In 4.3.1, all ampersands are converted to entities:
 {{{
 & <a href="http://example.com/?a=1&s=2&hl=3">test</a>
 }}}
 In 4.4, only the first ampersand is converted, the URL stays as is:
 {{{
 & <a href="http://example.com/?a=1&s=2&hl=3">test</a>
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35008>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list