Changeset 16536
- Timestamp:
- 11/22/2010 05:17:31 PM (14 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-links-list-table.php
r16182 r16536 106 106 $link->link_category = wp_get_link_cats( $link->link_id ); 107 107 108 $short_url = str_replace( 'http://', '', $link->link_url ); 109 $short_url = preg_replace( '/^www\./i', '', $short_url ); 110 if ( '/' == substr( $short_url, -1 ) ) 111 $short_url = substr( $short_url, 0, -1 ); 112 if ( strlen( $short_url ) > 35 ) 113 $short_url = substr( $short_url, 0, 32 ).'...'; 108 $short_url = url_shorten( $link->link_url ); 114 109 115 110 $visible = ( $link->link_visible == 'Y' ) ? __( 'Yes' ) : __( 'No' ); -
trunk/wp-admin/includes/class-wp-users-list-table.php
r16428 r16536 172 172 $user_object = sanitize_user_object( $user_object, 'display' ); 173 173 $email = $user_object->user_email; 174 $url = $user_object->user_url; 175 $short_url = str_replace( 'http://', '', $url ); 176 $short_url = str_replace( 'www.', '', $short_url ); 177 if ( '/' == substr( $short_url, -1 ) ) 178 $short_url = substr( $short_url, 0, -1 ); 179 if ( strlen( $short_url ) > 35 ) 180 $short_url = substr( $short_url, 0, 32 ).'...'; 174 181 175 $checkbox = ''; 182 176 // Check if the user for this row is editable -
trunk/wp-admin/includes/misc.php
r16340 r16536 213 213 214 214 /** 215 * {@internal Missing Short Description}}216 * 217 * @since unknown218 * 219 * @param unknown_type$url220 * @return unknown215 * Shorten an URL, to be used as link text 216 * 217 * @since 1.2.1 218 * 219 * @param string $url 220 * @return string 221 221 */ 222 222 function url_shorten( $url ) {
Note: See TracChangeset
for help on using the changeset viewer.