-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Backport r57868 from WordPress-Develop. #60141
Conversation
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
- ✅ Manually verified that changes match wordpress-develop commit
- ✅ Tested installing and using fonts
- ✅ Testing filtering the fonts directory using the
font_dir
filter
@creativecoder Thanks Grant, can you see why the pull request automation action is failing. It consistently shows "Error: main: Task assignFixedIssues failed with error: HttpError: Not Found" but I am unsure what that is trying to do. |
@peterwilsoncc There was this line in the PR description at the end of the commit message from the original trac commit
I think the automation was trying to find that Gutenberg issue (which doesn't exist, because it's a trac ticket number) and assign it to you. I changed it to "Fixes https://core.trac.wordpress.org/ticket/60652.", but needed to update the branch to get the job to pick up on the PR description edit. Hopefully should be good to go now 🤞🏼 . |
Prevent font folder naive filtering causing infinite loops. This modifies the font directory API to more closely reflect the upload directory API to help account for naive filtering when uploading fonts. This moves the protection of infinite loops to the new function `_wp_filter_font_directory()` to allow developers extending and maintaining the font library to apply the filter without the need for a closure. These changes also ensure both the `upload_dir` and `font_dir` filter are applied consistently when both creating and deleting fonts faces. Prior to this commit the `upload_dir` filter was only fired when creating fonts faces via the REST API. Applying the font directory filter to the `upload_dir` filter is now done by adding the `_wp_filter_font_directory` function rather than `wp_get_font_dir()`. Developers who have previously modified the font upload directory using the `font_dir` filter will NOT need to upload their code. Co-authored-by: Grant Kinney <hi@grant.mk>
What?
Backports r57868 / WordPress/wordpress-develop@ca8d78e to the plugin's 6.5 compatibility shims.
Fixes #60140.
The WordPress-Develop commit message is:
Why?
Consistency with WordPress Core in future version of the plugins.
How?
Copy paste mainly, please review the changes to make sure I haven't messed anything up
Testing Instructions
Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A