-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Issue/4998 - Make query-panel block available #4999
Conversation
It would make sense to rename this component if it were to be exposed, as it doesn't do what I would expect from the name. It's more of an abstraction of logic for the Latest Posts block rather than a standalone component that is very reusable. |
Hi @amdrew thank you for creating this PR. I think the component should be exposed, and it was a bug that it was not exposed before.
Hi @paulwilde, the QueryPanel component was implemented with the intention of being generic in accordance to what was specified in issue #2662. The idea is for the component to be reusable and used outside latest posts. |
@jorgefilipecosta Ah that makes more sense. I had a quick look at the file and saw that it was just a couple of controls abstracted into its own file from the Latest Posts block and assumed it was just to make the block file a little more trim. I have used this sort of thing before with widgets, having controls dedicated to selecting a post type, taxonomy & taxonomy term, etc. I was thinking the name |
It probably might be just |
@jorgefilipecosta has the alternative solution that moves this component to |
Fixes #4998