Changeset 5021 for trunk/wp-includes/formatting.php
- Timestamp:
- 03/10/2007 08:32:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r5020 r5021 564 564 565 565 function trailingslashit($string) { 566 if ( '/' != substr($string, -1)) 567 $string .= '/'; 568 return $string; 566 return untrailingslashit($string) . '/'; 569 567 } 570 568 571 569 function untrailingslashit($string) { 572 return preg_replace('|/+$|', '', $string);570 return rtrim($string, '/'); 573 571 } 574 572
Note: See TracChangeset
for help on using the changeset viewer.