Make WordPress Core


Ignore:
Timestamp:
04/23/2010 04:10:48 PM (15 years ago)
Author:
ryan
Message:

Use rtrim() instead of untrailingslashit to avoid formatting.php dependency. Relying on formatting.php breaks SHORTINIT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r14192 r14197  
    20202020
    20212021    // safe mode fails with a trailing slash under certain PHP versions.
    2022     $target = untrailingslashit($target);
     2022    $target = rtrim($target, '/'); // Use rtrim() instead of untrailingslashit to avoid formatting.php dependency.
    20232023    if ( empty($target) )
    20242024        $target = '/';
Note: See TracChangeset for help on using the changeset viewer.