[wp-trac] [WordPress Trac] #55376: Use wp_filesize in core
WordPress Trac
noreply at wordpress.org
Fri Mar 11 14:42:42 UTC 2022
#55376: Use wp_filesize in core
--------------------------+----------------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: good-first-bug needs-patch
Focuses: |
--------------------------+----------------------------------------
Introduced in [52837] as part of #49412, the `wp_filesize` function is a
wrapper around filesize. It has some improves on this function, like
casting to int and filters. The filesize function is call throughout core
functions. This function may be useful in more contexts.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55376>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list