WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/10/2007 06:25:33 AM (15 years ago)
Author:
markjaquith
Message:

new function: untrailingslashit(). fixes #3899

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r5019 r5020  
    2525        $string = trailingslashit($string);
    2626    else
    27         $string = preg_replace('|/+$|', '', $string); // untrailing slash
     27        $string = untrailingslashit($string);
    2828
    2929    // Note that $type_of_url can be one of following:
Note: See TracChangeset for help on using the changeset viewer.