Skip to content

Commit d140a8d

Browse files
swissspidyCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 4d6573b commit d140a8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Widget_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public function delete( $args, $assoc_args ) {
479479
* : If set, all sidebars will be reset.
480480
*
481481
* [--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.
483483
*
484484
* ## EXAMPLES
485485
*
@@ -516,7 +516,7 @@ public function reset( $args, $assoc_args ) {
516516

517517
// Explicitly handle reserved sidebar ID for inactive widgets.
518518
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." );
520520
}
521521

522522
// Fetch all registered sidebars if --all flag is set.

0 commit comments

Comments
 (0)