mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 ));
|
||||
|
||||
Reference in New Issue
Block a user