[wp-trac] [WordPress Trac] #23570: Add functions to extract a URL from an arbitrary string, HTML, or the current $post

WordPress Trac noreply at wordpress.org
Wed Mar 6 12:25:23 UTC 2013


#23570: Add functions to extract a URL from an arbitrary string, HTML, or the
current $post
----------------------------+------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  3.6
Component:  Post Formats    |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by Frank Klein):

 I tested the 23570.2 patch as part of #23619 and there was a very small
 issue with the {{{get_content_link}}} when the content is HTML. The
 regular expression for detecting the link was incorrect (it's {{{(.+?)}}}
 instead of {{{(.?)}}}).

 So here's the .2 patch with this very small change.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23570#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list