WordPress.org

Make WordPress Core

Changeset 16207


Ignore:
Timestamp:
11/05/10 15:29:50 (6 years ago)
Author:
ryan
Message:

Don't anchor regex. Props ozh. fixes #14628

File:
1 edited

Legend:

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

    r16154 r16207  
    17691769 
    17701770        // Test for invalid characters 
    1771         $sub = preg_replace( '/^[^a-z0-9-]+$/i', '', $sub ); 
     1771        $sub = preg_replace( '/[^a-z0-9-]+/i', '', $sub ); 
    17721772 
    17731773        // If there's anything left, add it to the valid subs 
Note: See TracChangeset for help on using the changeset viewer.