-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Query Loop: Don't overwrite the 'query.inherit' attribute value #69698
base: trunk
Are you sure you want to change the base?
Query Loop: Don't overwrite the 'query.inherit' attribute value #69698
Conversation
Size Change: +99 B (+0.01%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
] } | ||
> | ||
{ __( | ||
'Cannot inherit the global queries when placed inside the singular content' |
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.
Note: This is just placeholder text for initial testing.
@@ -134,6 +129,8 @@ export default function QueryContent( { | |||
displayLayout: { ...displayLayout, ...newDisplayLayout }, | |||
} ); | |||
|
|||
const hasInheritanceWarning = isSingular && inherit; |
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.
Todo: Add comment explaining the reason and condition for the warning logic.
What?
Closes #67252
An alternative solution for #64746 reverts #65067.
Why?
How?
Testing Instructions
inherit: true
).inherit: false
).Testing Instructions for Keyboard
Same.
Screenshots or screencast