Skip to content

Commit

Permalink
Add deprecation hint in wp language core activate's docblock (#125)
Browse files Browse the repository at this point in the history
* refactor: adds deprecation hint in 'wp language core activate' docblock

* refactor: updates deprication message

* Couple more tweaks

---------

Co-authored-by: Daniel Bachhuber <daniel.bachhuber@automattic.com>
  • Loading branch information
Pathan-Amaankhan and danielbachhuber authored Aug 27, 2023
1 parent 1eb823a commit 962c420
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ Activates a given language.
wp language core activate <language>
~~~

**Warning: `wp language core activate` is deprecated. Use `wp site switch-language` instead.**

**OPTIONS**

<language>
Expand Down
2 changes: 2 additions & 0 deletions src/Core_Language_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ public function update( $args, $assoc_args ) { // phpcs:ignore Generic.CodeAnaly
/**
* Activates a given language.
*
* **Warning: `wp language core activate` is deprecated. Use `wp site switch-language` instead.**
*
* ## OPTIONS
*
* <language>
Expand Down

0 comments on commit 962c420

Please sign in to comment.