Make WordPress Core

Changeset 10717


Ignore:
Timestamp:
03/05/2009 08:17:27 PM (16 years ago)
Author:
ryan
Message:

Escape dot in regex. Props pne, sivel. fixes #9088 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link-manager.php

    r10606 r10717  
    169169        $link->link_category = wp_get_link_cats($link->link_id);
    170170        $short_url = str_replace('http://', '', $link->link_url);
    171         $short_url = preg_replace('/^www./i', '', $short_url);
     171        $short_url = preg_replace('/^www\./i', '', $short_url);
    172172        if ('/' == substr($short_url, -1))
    173173            $short_url = substr($short_url, 0, -1);
Note: See TracChangeset for help on using the changeset viewer.