Ticket #21167: 21167.patch
| File 21167.patch, 667 bytes (added by , 14 years ago) |
|---|
-
wp-includes/rewrite.php
1251 1251 } 1252 1252 } 1253 1253 1254 //escape regex special characters in permalink structure 1255 foreach ( array( '.', '+', '$', '(', ')' ) as $special_char ) 1256 $permalink_structure = str_replace( $special_char, '\\' . $special_char, $permalink_structure ); 1257 1254 1258 //get everything up to the first rewrite tag 1255 1259 $front = substr($permalink_structure, 0, strpos($permalink_structure, '%')); 1256 1260 //build an array of the tags (note that said array ends up being in $tokens[0])