Coding Standards: Use `KB_IN_BYTES` in `get_file_data()`.
See #22405, #47632. Built from https://develop.svn.wordpress.org/trunk@45854 git-svn-id: http://core.svn.wordpress.org/trunk@45665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4896dc64ee
commit
46ca606114
|
@ -5636,7 +5636,7 @@ function get_file_data( $file, $default_headers, $context = '' ) {
|
|||
$fp = fopen( $file, 'r' );
|
||||
|
||||
// Pull only the first 8kiB of the file in.
|
||||
$file_data = fread( $fp, 8192 );
|
||||
$file_data = fread( $fp, 8 * KB_IN_BYTES );
|
||||
|
||||
// PHP will close file handle, but we are good citizens.
|
||||
fclose( $fp );
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-45853';
|
||||
$wp_version = '5.3-alpha-45854';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue