Escape dot in regex. Props pne, sivel. fixes #9088 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10717 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f88fdb0935
commit
9b4e1104a9
@ -168,7 +168,7 @@ if ( $links ) {
|
||||
$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 = preg_replace('/^www./i', '', $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)
|
||||
|
Loading…
Reference in New Issue
Block a user