Permalink
Browse files

Anchor preg. Props mrmist. fixes #8881 for 2.7

git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 85f3994 commit 9fa9078eff20dd22084c65c9c0305ff1413cce26 ryan committed Feb 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-admin/link-manager.php
@@ -168,7 +168,7 @@
$link->link_name = attribute_escape($link->link_name);
$link->link_category = wp_get_link_cats($link->link_id);
$short_url = str_replace('http://', '', $link->link_url);
- $short_url = str_replace('www.', '', $short_url);
+ $short_url = preg_replace('/^www./i', '', $short_url);
if ('/' == substr($short_url, -1))
$short_url = substr($short_url, 0, -1);
if (strlen($short_url) > 35)

0 comments on commit 9fa9078

Please sign in to comment.