Make WordPress Core


Ignore:
Timestamp:
04/17/2009 03:28:55 AM (16 years ago)
Author:
markjaquith
Message:

Dots in post slugs should be dashed, not dropped. props Denis-de-Bernardy. fixes #9489

File:
1 edited

Legend:

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

    r10973 r10977  
    677677    $title = strtolower($title);
    678678    $title = preg_replace('/&.+?;/', '', $title); // kill entities
     679    $title = str_replace('.', '-', $title);
    679680    $title = preg_replace('/[^%a-z0-9 _-]/', '', $title);
    680681    $title = preg_replace('/\s+/', '-', $title);
Note: See TracChangeset for help on using the changeset viewer.