Skip to content

Commit 5650cee

Browse files
committed
fix variable assignment and usage
1 parent 45722c2 commit 5650cee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/WP_CLI/System_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ public function source( array $args, array $assoc_args ) {
165165

166166
foreach ( $sources as $check_source => $version ) {
167167
$active = dirname( $check_source ) === $source;
168-
$path = $source;
168+
$path = $check_source;
169169

170170
if ( ! $fullpath ) {
171171
$path = str_replace( ABSPATH, '', $path );
172172
}
173173

174-
$rows[ $source ] = array(
174+
$rows[ $check_source ] = array(
175175
'source' => $path,
176176
'version' => $version,
177177
'active' => $active ? 'yes' : 'no',

0 commit comments

Comments
 (0)