-
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
Fonts Library: collection ID is undefined #58075
Comments
I think this also breaks the modal dialog tabs when additional collections are added. @matiasbenedetto I was trying to test additional collections by installing your After changing the plugin activates correctly and a fourth tab is shown in the modal dialog: but the Google fonts and the Modern Fonts Stacks tab / tabpanel use the same id I also suspect the fatal error comes from the fact the expected array key |
i'm also getting a JS |
Hi @afercia 👋 thanks for reporting this. It seems like this should be fixed with this PR #57884. It was already merged to a feature branch with a larger set of changes #57688 intended to be merge soon. After merging the feature branch in trunk this problem should be fixed. After that, I'll update this little example plugin to match the new expected shape of data introduced with #57884, #57736 and #57616 |
Thanks for your feedback @matiasbenedetto I see in #57884 many references to |
I'm going to close this as #57688 has now been merged, but please re-open if the issue happens again. |
Description
This appeaers to be a regression in trunk after #57735
#57735 changed the font collection
id
toslug
, the changes were made mainly on the PHP side. However, it appears a few parts in the JavaScript side sill expect a colelctionid
that it may be nowundefined
.Cc @matiasbenedetto
For example:
In the odal dialog markup the ID is still used for the google fonts tab and tabpanel, but it is now undefined:
The id to be used in these components is expected to be
default-font-collection
.More importantly:
I couldn't get the prompt to allow to install Google fonts to shohw. Only after reverting #57735 I was finally able to see the prompt. There is code in the JS implementation that still expects the
default-font-collection
ID while now it receivesundefined
.Screenshot of the prompt to allow to install fonts from Google:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: