Changeset 10482
- Timestamp:
- 02/02/2009 07:14:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-admin/link-manager.php
r10049 r10482 169 169 $link->link_category = wp_get_link_cats($link->link_id); 170 170 $short_url = str_replace('http://', '', $link->link_url); 171 $short_url = str_replace('www.', '', $short_url);171 $short_url = preg_replace('/^www./i', '', $short_url); 172 172 if ('/' == substr($short_url, -1)) 173 173 $short_url = substr($short_url, 0, -1);
Note: See TracChangeset
for help on using the changeset viewer.