Skip to content

Commit 962c420

Browse files
Add deprecation hint in wp language core activate's docblock (#125)
* 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>
1 parent 1eb823a commit 962c420

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ Activates a given language.
7979
wp language core activate <language>
8080
~~~
8181

82+
**Warning: `wp language core activate` is deprecated. Use `wp site switch-language` instead.**
83+
8284
**OPTIONS**
8385

8486
<language>

src/Core_Language_Command.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ public function update( $args, $assoc_args ) { // phpcs:ignore Generic.CodeAnaly
318318
/**
319319
* Activates a given language.
320320
*
321+
* **Warning: `wp language core activate` is deprecated. Use `wp site switch-language` instead.**
322+
*
321323
* ## OPTIONS
322324
*
323325
* <language>

0 commit comments

Comments
 (0)