Changeset 1481 for trunk/wp-includes/functions-formatting.php
- Timestamp:
- 07/24/2004 03:22:49 AM (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
r1435 r1481 1 1 <?php 2 2 3 add_ action('sanitize_title', 'sanitize_title_with_dashes');3 add_filter('sanitize_title', 'sanitize_title_with_dashes'); 4 4 5 5 function wptexturize($text) { … … 120 120 } 121 121 122 function sanitize_title($title) { 123 $title = do_action('sanitize_title', $title); 122 function sanitize_title($title, $fallback_title = '') { 123 $title = apply_filters('sanitize_title', $title); 124 125 if (empty($title)) { 126 $title = $fallback_title; 127 } 124 128 125 129 return $title;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)