Make WordPress Core

Changeset 1336


Ignore:
Timestamp:
05/21/2004 09:35:16 PM (22 years ago)
Author:
michelvaldrighi
Message:

strip leading and trailing dashes from post slugs

File:
1 edited

Legend:

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

    r1334 r1336  
    9292    $title = str_replace(' ', '-', $title);
    9393    $title = preg_replace('|-+|', '-', $title);
    94     $title = trim($title);
     94    $title = trim($title, '-');
    9595
    9696    return $title;
Note: See TracChangeset for help on using the changeset viewer.