-
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
Renames "Fonts Library" to "Font Library" #53780
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❔ phpunit/fonts/font-library/wpFontLibrary/getFontsDir-test.php ❔ lib/experimental/fonts/font-face/bc-layer/webfonts-deprecations.php ❔ lib/load.php ❔ phpunit/multisite.xml ❔ lib/experimental/fonts/font-library/class-wp-font-family-utils.php ❔ lib/experimental/fonts/font-library/class-wp-font-family.php ❔ lib/experimental/fonts/font-library/class-wp-font-library.php ❔ lib/experimental/fonts/font-library/class-wp-rest-font-library-controller.php ❔ lib/experimental/fonts/font-library/font-library.php ❔ phpunit/fonts/font-library/class-wp-rest-font-library-controller-test.php ❔ phpunit/fonts/font-library/wpFontFamily/__construct-test.php ❔ phpunit/fonts/font-library/wpFontFamily/base.php ❔ phpunit/fonts/font-library/wpFontFamily/getData-test.php ❔ phpunit/fonts/font-library/wpFontFamily/getDataAsJson-test.php ❔ phpunit/fonts/font-library/wpFontFamily/getFontPost-test.php ❔ phpunit/fonts/font-library/wpFontFamily/hasFontFaces-test.php ❔ phpunit/fonts/font-library/wpFontFamily/install-test.php ❔ phpunit/fonts/font-library/wpFontFamily/uninstall-test.php ❔ phpunit/fonts/font-library/wpFontFamilyUtils/getFilenameFromFontFace-test.php ❔ phpunit/fonts/font-library/wpFontFamilyUtils/hasFontMimeType-test.php ❔ phpunit/fonts/font-library/wpFontFamilyUtils/mergeFontsData-test.php ❔ phpunit/fonts/font-library/wpFontLibrary/setUploadDir-test.php |
I created this PR ahead of consensus to do the renaming. Once there's consensus, then this PR should be ready to go. |
…erg into try/rename-font-library
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.
Could we use the new name here instead of both?
( defined( 'FONT_LIBRARY_ENABLE' ) && FONT_LIBRARY_ENABLE ) ||
( defined( 'FONTS_LIBRARY_ENABLE' ) && FONTS_LIBRARY_ENABLE )
if ( | ||
( defined( 'FONT_LIBRARY_ENABLE' ) && FONT_LIBRARY_ENABLE ) || | ||
( defined( 'FONTS_LIBRARY_ENABLE' ) && FONTS_LIBRARY_ENABLE ) | ||
) { |
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.
@matiasbenedetto I left both constants in just in case someone is working on a PR or testing locally that is using the plural version.
This code is temporary. Once the frontend PR lands, then it can be removed.
So I think it's okay to leave it, i.e. just in case to help with developer workflow.
What do you think?
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.
Makes sense 👍
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.
The name change is OK to me and tests are running as expected, so LGTM 🚀
Part of #53778.
What?
Renames the PHP code from "Fonts Library" (plural) to "Font Library (singular).
Why?
See the reasoning #53778.
How?
Renames the files, directories, comments, functions, and classes to the singular version.
Testing Instructions
All CI jobs should pass ✅
Locally running the test suite should pass: