Opened 3 years ago
Last modified 15 months ago
#55376 new enhancement
Use wp_filesize in core
Reported by: | spacedmonkey | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | good-first-bug has-patch |
Focuses: | Cc: |
Attachments (1)
Change History (13)
This ticket was mentioned in PR #2402 on WordPress/wordpress-develop by Chargnn.
3 years ago
#2
- Keywords has-patch added; needs-patch removed
Replaced usage of filesize functions to wp_filesize in wp-admin/theme-editor.php
Trac ticket: https://core.trac.wordpress.org/ticket/55376
spacedmonkey commented on PR #2402:
3 years ago
#5
Thanks @Chargnn for the patch. I have added some links other places where this function can be used.
#6
in reply to:
↑ 5
@
3 years ago
Replying to spacedmonkey:
spacedmonkey commented on PR #2402:
I would consider using this function in the following places.
Thank you! Looking into this right now.
#8
in reply to:
↑ 4
@
2 years ago
Replying to spacedmonkey:
I would suggest not to use wp_filesize()
in WP_Filesystem_*
classes or other mission-critical parts like the update_core()
function, due to backward compatibiltity concerns. See the discussion in comment:2:ticket:55688.
Using wp_filesize()
in other instances seems fine at a glance.
#9
@
2 years ago
Thanks, @spacedmonkey for your advice, I followed your instruction and changed the filesize() function in the rest of the files.
#10
@
17 months ago
- Keywords needs-patch needs-refresh added; has-patch removed
@nihar007 This patch needs a refresh.
This ticket was mentioned in PR #4361 on WordPress/wordpress-develop by @spacedmonkey.
17 months ago
#11
- Keywords has-patch added; needs-patch needs-refresh removed
Trac ticket: https://core.trac.wordpress.org/ticket/55376
@spacedmonkey commented on PR #4361:
15 months ago
#12
Fixed
CC @flixos90