Skip to content

Commit 8ebf209

Browse files
swissspidyCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 7da71dc commit 8ebf209

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
@@ -279,8 +279,8 @@ function ( $key ) {
279279
? trim( WP_CLI::get_value_from_arg_or_stdin( $args, -1 ) )
280280
: null;
281281

282-
if ( ! empty( $stdin_value ) ) {
283-
$patch_value = WP_CLI::read_value( $stdin_value, $assoc_args );
282+
if ( null !== $stdin_value && '' !== $stdin_value ) {
283+
$patch_value = WP_CCLI::read_value( $stdin_value, $assoc_args );
284284
} elseif ( count( $key_path ) > 1 ) {
285285
$patch_value = WP_CLI::read_value( array_pop( $key_path ), $assoc_args );
286286
} else {

0 commit comments

Comments
 (0)