[wp-trac] [WordPress Trac] #23776: A string of text starting with "http://" turned into a paragraph

WordPress Trac noreply at wordpress.org
Sun May 25 12:44:46 UTC 2014


#23776: A string of text starting with "http://" turned into a paragraph
--------------------------------------+------------------
 Reporter:  winterstreet              |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.0
Component:  Embeds                    |     Version:  2.9
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:
--------------------------------------+------------------

Comment (by UmeshSingla):

 In order to fix this I've added a strpos check for **<iframe** on returned
 URL, So if a URL contains an embed iframe, new lines will be added to it,
 otherwise a normal hyperlink is returned.

 It also fixes the url not being converted to a hyperlink.

 This part of code seems to be creating the issue, I've removed it as I
 didn't found any use for it.

 `$oldval = $this->linkifunknown;`
 `$this->linkifunknown = false;`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23776#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list