Changeset 12741
- Timestamp:
- 01/17/2010 02:57:59 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-direct.php
r12723 r12741 280 280 281 281 function mkdir($path, $chmod = false, $chown = false, $chgrp = false) { 282 // safe mode fails with a trailing slash under certain PHP versions. 283 $path = untrailingslashit($path); 284 if ( empty($path) ) 285 $path = '/'; 286 282 287 if ( ! $chmod ) 283 288 $chmod = FS_CHMOD_DIR; -
trunk/wp-includes/functions.php
r12740 r12741 1935 1935 $target = str_replace( '//', '/', $target ); 1936 1936 1937 // safe mode fails with trailing slash under certain PHP versions.1937 // safe mode fails with a trailing slash under certain PHP versions. 1938 1938 $target = untrailingslashit($target); 1939 1939 if ( empty($target) )
Note: See TracChangeset
for help on using the changeset viewer.