You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Widget_Command.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -479,7 +479,7 @@ public function delete( $args, $assoc_args ) {
479
479
* : If set, all sidebars will be reset.
480
480
*
481
481
* [--inactive]
482
-
* : If set, only inactive sidebars will be reset.
482
+
* : If set, all inactive sidebars will also be reset, in addition to any sidebars specified via <sidebar-id>... or selected with --all.
483
483
*
484
484
* ## EXAMPLES
485
485
*
@@ -516,7 +516,7 @@ public function reset( $args, $assoc_args ) {
516
516
517
517
// Explicitly handle reserved sidebar ID for inactive widgets.
518
518
if ( in_array( 'wp_inactive_widgets', $args, true ) ) {
519
-
WP_CLI::error( "Sidebar 'wp_inactive_widgets' is reserved for inactive widgets. Use the --inactive flag instead." );
519
+
WP_CLI::error( "Sidebar 'wp_inactive_widgets' is reserved for inactive widgets and cannot be reset with this command. The --inactive flag only targets widgets from orphaned or unregistered sidebars, not 'wp_inactive_widgets' itself." );
520
520
}
521
521
522
522
// Fetch all registered sidebars if --all flag is set.
0 commit comments