Changeset 1289 for trunk/wp-includes/functions-formatting.php
- Timestamp:
- 05/16/2004 10:07:26 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions-formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r1269 r1289 1 1 <?php 2 3 add_action('sanitize_title', 'convert_spaces_to_dashes'); 2 4 3 5 function wptexturize($text) { … … 82 84 $title = preg_replace('/[^a-z0-9 -]/', '', $title); 83 85 $title = preg_replace('/\s+/', ' ', $title); 86 $title = do_action('sanitize_title', $title); 84 87 $title = trim($title); 85 $title = str_replace(' ', '-', $title);86 $title = preg_replace('|-+|', '-', $title);87 88 return $title; 89 } 90 91 function convert_spaces_to_dashes($content) { 92 $content = str_replace(' ', '-', $content); 93 $content = preg_replace('|-+|', '-', $content); 88 94 } 89 95
Note: See TracChangeset
for help on using the changeset viewer.