-
Notifications
You must be signed in to change notification settings - Fork 383
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
Update legacy theme styles to add responsiveness to featured image #7560
Merged
Merged
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
558578b
Update legacy theme styles to add responsiveness to featured images
thelovekesh 662e5b8
Merge branch 'develop' into fix/legacy-theme-img-responsiveness
thelovekesh 2b2b9c3
Update legacy theme featured image style
thelovekesh 7f752ab
Merge branch 'develop' into fix/legacy-theme-img-responsiveness
thelovekesh d62b5c2
Fix maridb container init in GH workflows
thelovekesh 2b21baa
Decouple composer normalize from phpcs job
thelovekesh 843fd55
Fix phpstan errors
thelovekesh 5b2cf50
Remove fetchpriority from test markup
thelovekesh 8f61904
Update deprecated ` WP_Scripts::print_inline_script` with `WP_Scripts…
thelovekesh 14e58fb
Update `PolyfillsTest::get_inline_script()`
thelovekesh d00a239
Remove clamp values from tests as they can be dynamic after new WP re…
thelovekesh 403af64
Add WP_DEVELOPMENT_MODE to theme in phpunit bootstrap file
thelovekesh 5247813
Remove `$display` param from `::get_inline_script()` function
thelovekesh e65ef36
Revert "Add WP_DEVELOPMENT_MODE to theme in phpunit bootstrap file"
thelovekesh be8c3fb
Remove dependency from `wp_theme_has_theme_json()` to check if theme …
thelovekesh 892fa93
Update theme_has_theme_json to match core-patched version
westonruter 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 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 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 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 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 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 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 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 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 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 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 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.
Shouldn't this be
plugin
?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.
Yes, it should be. I am just testing a few scenarios with
theme
.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.
@westonruter
wp_theme_has_theme_json()
now depends onwp_get_development_mode()
which istheme
andWP_RUN_CORE_TESTS
constant but setting upWP_RUN_CORE_TESTS
is breaking our multiple test cases so I think for now we have to keepWP_DEVELOPMENT_MODE
astheme
.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.
Is the problem that
wp_theme_has_theme_json()
is sending back stale results? Does this reflect a problem with caching?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.
Yes. In these tests, we are changing the theme to
TT3
to test reader theme features fromtheme.json
. After changing the themewp_theme_has_theme_json()
returns false as the previous theme was not a theme withtheme.json
which is a cached result AFAIK.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.
I think this then reflects a bug in
wp_theme_has_theme_json
. In particular, it is not varying the cache by the theme. There needs to be another static variable inwp_theme_has_theme_json
which captures the theme that was checked, or else to let$theme_has_support
be a mapping of theme slug to boolean.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.
Yeah makes sense. It should have some logic to revalidate the cache in case the theme is being changed.
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.
Core patch created: WordPress/wordpress-develop#4816