- Timestamp:
- 09/11/2013 08:26:57 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-direct.php
r25305 r25349 69 69 return false; 70 70 71 mbstring_binary_safe_encoding(); 72 73 $data_length = strlen( $contents ); 74 71 75 $bytes_written = fwrite( $fp, $contents ); 72 76 77 reset_mbstring_encoding(); 78 73 79 fclose( $fp ); 74 80 75 if ( false === $bytes_written || $bytes_written != strlen( $contents ))81 if ( $data_length !== $bytes_written ) 76 82 return false; 77 83
Note: See TracChangeset
for help on using the changeset viewer.