Changeset 45917 for trunk/src/wp-includes/functions.php
- Timestamp:
- 08/30/2019 04:56:39 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r45914 r45917 5685 5685 * Retrieve metadata from a file. 5686 5686 * 5687 * Searches for metadata in the first 8 kiB of a file, such as a plugin or theme.5687 * Searches for metadata in the first 8 KB of a file, such as a plugin or theme. 5688 5688 * Each piece of metadata must be on its own line. Fields can not span multiple 5689 5689 * lines, the value will get cut at the end of the first line. 5690 5690 * 5691 * If the file data is not within that first 8 kiB, then the author should correct5691 * If the file data is not within that first 8 KB, then the author should correct 5692 5692 * their plugin file and move the data headers to the top. 5693 5693 * … … 5697 5697 * 5698 5698 * @param string $file Absolute path to the file. 5699 * @param array $default_headers List of headers, in the format `array( 'HeaderKey' => 'Header Name')`.5699 * @param array $default_headers List of headers, in the format `array( 'HeaderKey' => 'Header Name' )`. 5700 5700 * @param string $context Optional. If specified adds filter hook {@see 'extra_$context_headers'}. 5701 5701 * Default empty. … … 5706 5706 $fp = fopen( $file, 'r' ); 5707 5707 5708 // Pull only the first 8 kiB of the file in.5708 // Pull only the first 8 KB of the file in. 5709 5709 $file_data = fread( $fp, 8 * KB_IN_BYTES ); 5710 5710
Note: See TracChangeset
for help on using the changeset viewer.