-
Notifications
You must be signed in to change notification settings - Fork 156
Bug: Fixing null/undefined theme argument for the WordPressBlocksProvider #2013
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fb7f89c
Fixes #1986 and allows for the theme argument to be null for the Word…
colinmurphy 4514aed
Fixed typo
colinmurphy 1e6fd19
Fixing lint issue if theme context is undefined.
colinmurphy 24f4d0e
Fixed conditions to allow null for the theme argument
colinmurphy 54cfbaf
Fixed logic
colinmurphy d7146e3
Fixed lint issues
colinmurphy 73f8a2f
Fixed typo after running eslint and it changed WordPressThemeContext
colinmurphy 0493012
Returning theme context as this isn't required by the WordPressBlockP…
colinmurphy b94fd14
Set return type as BlocksTheme
colinmurphy 0d65fa3
Removed test assertion to check if theme is undefined
colinmurphy 1d1f608
Updating to use a default value for theme instead in order to prevent…
colinmurphy c53812b
Removed testing code
colinmurphy c6fcb91
Reverted test deletion.
colinmurphy 9059522
Addec changeset
colinmurphy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@colinmurphy I'm guessing we need to leave these tests in now that we've changed the fix, yes?
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.
@moonmeister We probably don't. I was leaving this for reference if someone wanted to use the theme argument but I removed the failing test for undefined.
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.
@moonmeister Tests reverted back. Thanks for pointing this out.