Skip to content

Commit 8ecd2f6

Browse files
Update documentation
1 parent e1a0e90 commit 8ecd2f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WP_CLI/CommandWithMeta.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function ( $a, $b ) use ( $orderby, $order ) {
143143
* : The name of the meta field to get.
144144
*
145145
* [--single]
146-
* : Whether to return a single value. This parameter has no effect if $key is not specified.
146+
* : Whether to return a single value.
147147
*
148148
* [--format=<format>]
149149
* : Get value in a particular format.
@@ -159,7 +159,7 @@ public function get( $args, $assoc_args ) {
159159
list( $object_id, $meta_key ) = $args;
160160

161161
$object_id = $this->check_object_id( $object_id );
162-
$single = Utils\get_flag_value( $assoc_args, 'single', true );
162+
$single = Utils\get_flag_value($assoc_args, 'single', true );
163163

164164
$value = $this->get_metadata( $object_id, $meta_key, $single );
165165

0 commit comments

Comments
 (0)