Changeset 49073
- Timestamp:
- 09/30/2020 12:18:36 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r49055 r49073 6041 6041 $fp = fopen( $file, 'r' ); 6042 6042 6043 // Pull only the first 8 KB of the file in. 6044 $file_data = fread( $fp, 8 * KB_IN_BYTES ); 6045 6046 // PHP will close file handle, but we are good citizens. 6047 fclose( $fp ); 6043 if ( $fp ) { 6044 // Pull only the first 8 KB of the file in. 6045 $file_data = fread( $fp, 8 * KB_IN_BYTES ); 6046 6047 // PHP will close file handle, but we are good citizens. 6048 fclose( $fp ); 6049 } else { 6050 $file_data = ''; 6051 } 6048 6052 6049 6053 // Make sure we catch CR-only line endings.
Note: See TracChangeset
for help on using the changeset viewer.