Repository navigation
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
|
matiasbenedetto
left a comment
There was a problem hiding this comment.
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/fontsinstead ofwp-content/uploads/fonts.How?
Changes the
set_upload_dirandget_fonts_dirfunctions.Testing Instructions
npm run test:unit:php)Screenshots or screencast