Ticket #30466: 30466.2.patch
File 30466.2.patch, 1.0 KB (added by , 9 years ago) |
---|
-
src/wp-includes/functions.php
4163 4163 * If the file data is not within that first 8kiB, then the author should correct 4164 4164 * their plugin file and move the data headers to the top. 4165 4165 * 4166 * @ seehttp://codex.wordpress.org/File_Header4166 * @link http://codex.wordpress.org/File_Header 4167 4167 * 4168 4168 * @since 2.9.0 4169 * 4169 4170 * @param string $file Path to the file. 4170 4171 * @param array $default_headers List of headers, in the format array('HeaderKey' => 'Header Name'). 4171 4172 * @param string $context Optional. If specified adds filter hook "extra_{$context}_headers". 4172 4173 * Default empty. 4174 * @return array Array of file headers in `HeaderKey => Header Value` format. 4173 4175 */ 4174 4176 function get_file_data( $file, $default_headers, $context = '' ) { 4175 4177 // We don't need to write to the file, so just open for reading.