Skip to content

65654 functions get dirsize#12570

Open
pbearne wants to merge 4 commits into
WordPress:trunkfrom
pbearne:65654-functions-get_dirsize
Open

65654 functions get dirsize#12570
pbearne wants to merge 4 commits into
WordPress:trunkfrom
pbearne:65654-functions-get_dirsize

Conversation

@pbearne

@pbearne pbearne commented Jul 16, 2026

Copy link
Copy Markdown

This PR adds unit tests for get_dirsize() and recurse_dirsize() in wp-includes/functions.php.
The implementation uses isolated temporary directories within the test environment to ensure reliable execution across different platforms and Docker setups.
Changes:
•tests/phpunit/tests/functions/getDirsize.php: Covers the high-level get_dirsize() API.
•tests/phpunit/tests/functions/recurseDirsize.php: Covers the recursive logic, including exclusions, filtering, and caching.

Trac ticket: https://core.trac.wordpress.org/ticket/65654

AI Disclosure:
•AI assistance: Yes
•Tool(s): Junie (JetBrains)
•Model(s): gemini-3-flash-preview
•Used for: Code analysis, test implementation, and environment-specific troubleshooting.

@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @pbearne@git.wordpress.org.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant