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:
Sergey Biryukov 2019-08-19 20:10:55 +00:00
parent 4896dc64ee
commit 46ca606114
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -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.