-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Code Quality: Rename construct_wp_query_args
to build_query_vars_from_query_block
#32041
Conversation
…rom_query_block`
construct_wp_query_args
to `build_query_vars_from_query_blockconstruct_wp_query_args
to build_query_vars_from_query_block
@@ -19,7 +19,7 @@ | |||
* | |||
* @return array Returns the constructed WP_Query arguments. | |||
*/ | |||
function construct_wp_query_args( $block, $page ) { | |||
function build_query_vars_from_query_block( $block, $page ) { |
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.
@ntsekouras, should we update the second param to accept an array of settings or $page
is all that is necessary here?
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.
$page
is enough and I can't think of any other settings for 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.
💯
Size Change: 0 B Total Size: 1.62 MB ℹ️ View Unchanged
|
Description
A simple rename refactoring to give a function a less generic name. It still needs to be backported to WordPress core.
How has this been tested?
Ensure all tests pass and Query blocks work as before.