[wp-trac] [WordPress Trac] #40204: Pasting a URL over a shortcode attribute shouldn't produce a link

WordPress Trac noreply at wordpress.org
Sun Mar 19 15:07:55 UTC 2017


#40204: Pasting a URL over a shortcode attribute shouldn't produce a link
----------------------------------------+-----------------------------
 Reporter:  johnbillion                 |      Owner:
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Editor                      |    Version:  4.3
 Severity:  normal                      |   Keywords:  needs-patch
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 Steps to reproduce:

 1. Ensure you're on the Visual tab in the post editor.
 2. Add the following shortcode to the post content: `[foo
 bar="http://example.com"]`.
 3. Copy a different URL into your clipboard and paste it over the contents
 of the `bar` attribute.

 Expected behaviour is that the URL gets replaced with the URL from your
 clipboard.

 Actual behaviour is that the value of the `bar` attribute gets converted
 into a link anchor, due to the automatic linking functionality in the
 editor.

 Related: #38628.

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


More information about the wp-trac mailing list