WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/22/2010 05:17:31 PM (9 years ago)
Author:
scribu
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-users-list-table.php

    r16428 r16536  
    172172        $user_object = sanitize_user_object( $user_object, 'display' );
    173173        $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
    181175        $checkbox = '';
    182176        // Check if the user for this row is editable
Note: See TracChangeset for help on using the changeset viewer.