Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
refactor: adds deprecation hint in 'wp language core activate' docblock
  • Loading branch information
Pathan-Amaankhan committed Aug 27, 2023
commit 913f7cdc7e56438c43b33103c6a8ae1f10c8ecfa
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ wp language core

### wp language core activate

Activates a given language.
Activates a given language. (Deprecated: use wp site switch-language instead)

~~~
wp language core activate <language>
Expand Down
2 changes: 1 addition & 1 deletion src/Core_Language_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! On it 👍.

Copy link
Contributor Author

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

Copy link
Member

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

*
* ## OPTIONS
*
Expand Down