Document url_shorten() and use in more places. Props latz for initial patch. Fixes #15540

git-svn-id: https://develop.svn.wordpress.org/trunk@16536 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-11-22 17:17:31 +00:00
parent e8dd42ce2a
commit ef9b5fb1ec
3 changed files with 6 additions and 17 deletions

View File

@@ -212,12 +212,12 @@ add_action( 'update_option_home', 'update_home_siteurl', 10, 2 );
add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 );
/**
* {@internal Missing Short Description}}
* Shorten an URL, to be used as link text
*
* @since unknown
* @since 1.2.1
*
* @param unknown_type $url
* @return unknown
* @param string $url
* @return string
*/
function url_shorten( $url ) {
$short_url = str_replace( 'http://', '', stripslashes( $url ));