Make WordPress Core


Ignore:
Timestamp:
09/03/2011 02:18:10 PM (14 years ago)
Author:
duck_
Message:

Fix typos in documentation (wp-admin/). See #18560.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-base.php

    r18268 r18632  
    154154                    return trailingslashit(constant($constant));
    155155        } elseif ( 'direct' == $this->method ) {
    156             $folder = str_replace('\\', '/', $folder); //Windows path sanitiation
     156            $folder = str_replace('\\', '/', $folder); //Windows path sanitisation
    157157            return trailingslashit($folder);
    158158        }
    159159
    160         $folder = preg_replace('|^([a-z]{1}):|i', '', $folder); //Strip out windows driveletter if its there.
    161         $folder = str_replace('\\', '/', $folder); //Windows path sanitiation
     160        $folder = preg_replace('|^([a-z]{1}):|i', '', $folder); //Strip out windows drive letter if it's there.
     161        $folder = str_replace('\\', '/', $folder); //Windows path sanitisation
    162162
    163163        if ( isset($this->cache[ $folder ] ) )
     
    224224        if ( $loop )
    225225            return false; //Prevent this function from looping again.
    226         //As an extra last resort, Change back to / if the folder wasnt found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups.
     226        //As an extra last resort, Change back to / if the folder wasn't found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups.
    227227        return $this->search_for_folder($folder, '/', true);
    228228
Note: See TracChangeset for help on using the changeset viewer.