-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font Library: changing the upload directory to wp-content/fonts #54122
Conversation
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/experimental/fonts/font-library/class-wp-font-library.php ❔ phpunit/tests/fonts/font-library/wpFontFamily/base.php ❔ phpunit/tests/fonts/font-library/wpFontFamily/install.php ❔ phpunit/tests/fonts/font-library/wpFontFamily/uninstall.php ❔ phpunit/tests/fonts/font-library/wpFontLibrary/getFontsDir.php ❔ phpunit/tests/fonts/font-library/wpFontLibrary/setUploadDir.php ❔ phpunit/tests/fonts/font-library/wpRestFontLibraryController/installFonts.php |
Flaky tests detected in 538d030. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6053126918
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a small change regarding avoiding one hardcoded variable in the tests base class.
Apart from that it tests and works as expected. LGTM
Thanks for working on this 🚀
What?
Fixes #53965, simplified alternative to #54076 as suggested by @matiasbenedetto .
Why?
We want the fonts to be stored in
wp-content/fonts
instead ofwp-content/uploads/fonts
.How?
Changes the
set_upload_dir
andget_fonts_dir
functions.Testing Instructions
npm run test:unit:php
)Screenshots or screencast