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

WordPress Trac noreply at wordpress.org
Fri Jun 13 14:18:12 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):

 Replying to [comment:11 SergeyBiryukov]:
 > I think `$this->linkifunknown` should be left as is, it's used in
 [source:tags/3.9.1/src/wp-includes/class-wp-embed.php#L314
 WP_Embed::maybe_make_link()] (as noted in comment:1:ticket:20315).

 For `autoembed_callback` it is dead code, $this->linkifunknown is set to
 false before calling shortocode function. As a result if there is a link
 in content it is never being converted to a link, it is left as it is,
 which is wrong, as per **Once found, it tries to embed it and if it is
 unable to, then it hyperlinks the URL**

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


More information about the wp-trac mailing list