Changeset 35813
- Timestamp:
- 12/07/2015 04:38:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r35803 r35813 4777 4777 4778 4778 /** 4779 * Shorten an URL, to be used as link text 4779 * Shorten an URL, to be used as link text. 4780 4780 * 4781 4781 * @since 1.2.0 4782 * @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param 4783 * 4784 * @param string $url URL to shorten4785 * @param int $length Maxiumum length of url to return4786 * @return string 4787 */4782 * @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param. 4783 * 4784 * @param string $url URL to shorten. 4785 * @param int $length Optional. Maximum length of the shortened URL. Default 35 characters. 4786 * @return string Shortened URL. 4787 */ 4788 4788 function url_shorten( $url, $length = 35 ) { 4789 4789 $stripped = str_replace( array( 'https://', 'http://', 'www.' ), '', $url );
Note: See TracChangeset
for help on using the changeset viewer.