Make WordPress Core

Changeset 573


Ignore:
Timestamp:
12/05/2003 08:14:07 PM (21 years ago)
Author:
saxmatt
Message:

Fixed it so the mod_rewrite regex no longer matches EVERY URI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/wp-options-permalink.php

    r565 r573  
    123123
    124124$match = str_replace('/', '/?', $permalink_structure);
     125$match = preg_replace('|/[?]|', '', $match, 1);
     126
    125127$match = str_replace($rewritecode, $rewritereplace, $match);
    126 
     128$match = preg_replace('|[?]|', '', $match, 1);
    127129preg_match_all('/%.+?%/', $permalink_structure, $tokens);
    128130
Note: See TracChangeset for help on using the changeset viewer.