-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add deprecation hint in wp language core activate
's docblock
#125
Add deprecation hint in wp language core activate
's docblock
#125
Conversation
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.
Thanks for the PR, @Pathan-Amaankhan !
src/Core_Language_Command.php
Outdated
@@ -316,7 +316,7 @@ public function update( $args, $assoc_args ) { // phpcs:ignore Generic.CodeAnaly | |||
} | |||
|
|||
/** | |||
* Activates a given language. | |||
* Activates a given language. (Deprecated: use wp site switch-language instead) |
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.
Can we put this on a new line, and make it similar to the deprecation notice for wp scaffold block
? https://github.com/wp-cli/scaffold-command/blob/594f0b47a2af6a19664f0f4717998b2cf5cb3ed7/src/Scaffold_Command.php#L205-L208
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.
Sure! On it 👍.
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.
Hello @danielbachhuber,
Have updated the doc-comment as suggested.
Please do let me know if further changes are required 😃.
cc: @swissspidy
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.
@Pathan-Amaankhan Thanks! I made one more minor tweak eeb97ff
wp language core activate
's docblock [Main]wp language core activate
's docblock
Description
wp language core activate
's docblock & Readme.md file as suggested in this comment.Screenshots of output
Command:
wp language core activate --help
Before
Synopsis text:
After
Synopsis text:
Fixes/Covers
wp language core activate
help text #94