Changeset 12723 for trunk/wp-admin/includes/class-wp-filesystem-direct.php
- Timestamp:
- 01/14/2010 09:23:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-direct.php
r11934 r12723 55 55 * Write a string to a file 56 56 * 57 * @param $file string Path to the file where to write the data.57 * @param $file string Remote path to the file where to write the data. 58 58 * @param $contents string The data to write. 59 59 * @param $mode int (optional) The file permissions as octal number, usually 0644. 60 * @param $type string (optional) Specifies additional type of access you require to the file.61 60 * @return bool False upon failure. 62 61 */ 63 function put_contents($file, $contents, $mode = false , $type = '') {64 if ( ! ($fp = @fopen($file, 'w' . $type)) )62 function put_contents($file, $contents, $mode = false ) { 63 if ( ! ($fp = @fopen($file, 'w')) ) 65 64 return false; 66 65 @fwrite($fp, $contents);
Note: See TracChangeset
for help on using the changeset viewer.