-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: Add post types and low level APIs #6027
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 Core SVNIf you're a Core Committer, use this list when committing to
GitHub Merge commitsIf 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. |
b513974
to
2613c74
Compare
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.
This seems to reintroduce or ignore things that were previously already flagged in #5285.
Can we make sure that the feedback from there is respected?
2d1d9b2
to
51bd927
Compare
e2e tests are failing on |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
@getdave Yes, that means this PR conflicts with the latest Gutenberg, it means we probably need to bring these changes to the latest Gutenberg version and do a patch release of Gutenberg before committing this PR to Core. But it doesn't prevent this PR from being reviewed properly. |
With the latest Gutenberg release, this PR passes all the tests now 🎉 |
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.
Lest some quick feedbacks.
*/ | ||
class Tests_Fonts_FontLibraryHooks extends WP_UnitTestCase { | ||
|
||
public function test_deleting_font_family_deletes_child_font_faces() { |
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.
Add @ticket
annotation in all tests that are added for ticket.
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.
Hi @mukeshpanchal27 👋
Per the handbook, the @ticket
annotation is only for bugfixes:
@ticket – A custom WordPress annotation. Use @ticket 12345 to indicate that a test addresses the bug described in ticket #12345. Internally, @ticket annotations are translated to @group, so that you can limit test runs to those associated with a specific ticket: $ phpunit --group 12345.
The tests have already have @group
annotations for allowing its test to be run separately.
Are you okay with not including the @ticket
?
Note also some fixes will be coming in here as soon as WordPress/gutenberg#58675 is in Gutenberg. |
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.
My review consisted of minor things, and I don't want them to get in the way of what feels like a good PR. I don't love the WP_Font_Utils
class, but we can refine that later.
I've applied the fixes from WordPress/gutenberg#58675. Ideally should aim to do one final PR upstream in Gutenberg repo to resolve all outstanding review comments here. |
More feedback being addressed in Gutenberg at WordPress/gutenberg#58691. |
The updates from WordPress/gutenberg#58691, addressing changes requested in review comments here, have now been applied to this PR. |
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.
-
After @swissspidy flagged some feedback that was missed from the original Core PR, it was re-audited today. The missed feedback was addressed and needed changes resolved in 507f1d9 ✅
-
All feedback in this PR is addressed and, if required, code changes made. ✅
LGTM 👍
IMO it's ready for commit.
Commit here https://core.trac.wordpress.org/changeset/57539 |
Follow-up PR here #6034 |
This PR backports the font library post types and low level APIs to Core. This is the first step to include the font library entirely into Core. Once this merged, we'll open a PR with the necessary REST API controllers.
Trac ticket: https://core.trac.wordpress.org/ticket/59166