[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
Thu Mar 21 23:17:06 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 needs-unit-tests |
----------------------------------------+------------------
Comment (by helen):
Replying to [comment:10 Mamaduka]:
> I think we should use `esc_url()` instead of `esc_url_raw()` in
`get_content_link()`, because second function is not safe to use for
displaying the URL.
Function could be used for purposes other than display. the_link() could
probably stand to do esc_url(), though.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23570#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list