WordPress.org

Make WordPress Core

Changeset 45854


Ignore:
Timestamp:
08/19/2019 08:09:11 PM (5 weeks ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use KB_IN_BYTES in get_file_data().

See #22405, #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r45853 r45854  
    56375637
    56385638    // Pull only the first 8kiB of the file in.
    5639     $file_data = fread( $fp, 8192 );
     5639    $file_data = fread( $fp, 8 * KB_IN_BYTES );
    56405640
    56415641    // PHP will close file handle, but we are good citizens.
Note: See TracChangeset for help on using the changeset viewer.