FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use `wp_filesize` instead of `filesize` if available by mehulkaklotar · Pull Request #376 · WordPress/performance · GitHub

Use wp_filesize instead of filesize if available - #376

Merged
felixarntz merged 7 commits into
trunkfrom
add/wp_filesize-fuction
Jun 15, 2022
Merged

Use wp_filesize instead of filesize if available#376
felixarntz merged 7 commits into
trunkfrom
add/wp_filesize-fuction

Conversation

Copy link
Copy Markdown
Member

Summary

WordPress 6.0 introduced the wp_filesize() function which should be used in favor of PHP's filesize() going forward.

Fixes #344

Relevant technical choices

This PR changes filesize function to wp_filesize everywhere it was used in the plugin. Code and test cases.

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

mehulkaklotar added [Type] Enhancement A suggestion for improvement of an existing feature Infrastructure Issues for the overall performance plugin infrastructure labels Jun 15, 2022
mehulkaklotar added this to the 1.2.0 milestone Jun 15, 2022
mehulkaklotar self-assigned this Jun 15, 2022
Comment thread load.php Outdated

mitogh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Small suggestion on the doc block since 6.0 was already released.

Looking good overall.

Comment thread polyfills.php Outdated

felixarntz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@mehulkaklotar Thank you, that looks solid. Just one tiny documentation follow-up comment.

Co-authored-by: Crisoforo Gaspar Hernández <hello@crisoforo.com>

akshitsethi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM 💯

felixarntz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Great work, thank you @mehulkaklotar!

felixarntz merged commit 2f477ea into trunk Jun 15, 2022
felixarntz deleted the add/wp_filesize-fuction branch June 15, 2022 19:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Infrastructure Issues for the overall performance plugin infrastructure [Type] Enhancement A suggestion for improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use wp_filesize instead of filesize if available

5 participants


Back | FazBrowse Home | New Git URL