Skip to content

Commit a9761dc

Browse files
authored
Merge pull request #462 from ernilambar/fix-menu-command-examples
2 parents e87a265 + 9467a93 commit a9761dc

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/Menu_Command.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* # Assign the 'my-menu' menu to the 'primary' location
3131
* $ wp menu location assign my-menu primary
32-
* Success: Assigned location to menu.
32+
* Success: Assigned location primary to menu my-menu.
3333
*
3434
* @package wp-cli
3535
*/
@@ -87,7 +87,8 @@ public function create( $args, $assoc_args ) {
8787
* ## EXAMPLES
8888
*
8989
* $ wp menu delete "My Menu"
90-
* Success: 1 menu deleted.
90+
* Deleted menu 'My Menu'.
91+
* Success: Deleted 1 of 1 menus.
9192
*/
9293
public function delete( $args, $assoc_args ) {
9394

src/Menu_Item_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* # Delete menu item
2020
* $ wp menu item delete 45
21-
* Success: 1 menu item deleted.
21+
* Success: Deleted 1 of 1 menu items.
2222
*/
2323
class Menu_Item_Command extends WP_CLI_Command {
2424

@@ -355,7 +355,7 @@ public function update( $args, $assoc_args ) {
355355
* ## EXAMPLES
356356
*
357357
* $ wp menu item delete 45
358-
* Success: 1 menu item deleted.
358+
* Success: Deleted 1 of 1 menu items.
359359
*
360360
* @subcommand delete
361361
*/

src/Menu_Location_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* # Assign the 'primary-menu' menu to the 'primary' location
2121
* $ wp menu location assign primary-menu primary
22-
* Success: Assigned location to menu.
22+
* Success: Assigned location primary to menu primary-menu.
2323
*
2424
* # Remove the 'primary-menu' menu from the 'primary' location
2525
* $ wp menu location remove primary-menu primary

0 commit comments

Comments
 (0)