From 46ca606114dd877b6adf80738018d08c8a117331 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 19 Aug 2019 20:10:55 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 6a2fede355..8e17499be0 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index ed2a327ac1..2346c41f22 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.