Changeset 23575
- Timestamp:
- 03/01/2013 05:56:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/misc.php
r23563 r23575 221 221 */ 222 222 function url_shorten( $url ) { 223 $short_url = str_replace( 'http://', '', wp_unslash( $url )); 224 $short_url = str_replace( 'www.', '', $short_url ); 223 $short_url = str_replace( array( 'http://', 'www.' ), '', $short_url ); 225 224 $short_url = untrailingslashit( $short_url ); 226 225 if ( strlen( $short_url ) > 35 )
Note: See TracChangeset
for help on using the changeset viewer.