WordPress.org

Make WordPress Core

Changeset 774


Ignore:
Timestamp:
01/14/2004 05:40:57 AM (14 years ago)
Author:
saxmatt
Message:

fix for multiple hypens.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r770 r774  
    9494    $title = trim($title);
    9595    $title = str_replace(' ', '-', $title);
     96    $title = preg_replace('|[-]+|', '-', $title);
    9697    return $title;
    9798}
Note: See TracChangeset for help on using the changeset viewer.