Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Pascal Birchler <[email protected]>
  • Loading branch information
mrsdizzie and swissspidy authored Apr 26, 2024
commit 67b101fe23b6943aad34892993bba339b418713c
1 change: 1 addition & 0 deletions php/WP_CLI/Dispatcher/CompositeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public function get_shortdesc() {
public function get_hook() {
return $this->hook;
}

/**
Comment thread
mrsdizzie marked this conversation as resolved.
* Set the short description for this composite command.
*
Expand Down
1 change: 0 additions & 1 deletion php/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,6 @@ function has_stdin() {
*
* @return string|null
*/

function get_hook_description( $hook ) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this just be a private method on the Help_Command class?

Copy link
Copy Markdown
Member Author

@mrsdizzie mrsdizzie Apr 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this needs to be a public util function because the handbook project doesn't use the output of wp help and needs similar code added there as well in order to have consistency. Was going to do a PR for that one next after this is added.

$events = [
'find_command_to_run_pre' => 'just before WP-CLI finds the command to run.',
Expand Down