Skip to content

Commit 0cf8504

Browse files
committed
Fix syntax error
1 parent a8952cc commit 0cf8504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function rest_get_client( $type, $key ) {
3232
return new WP_Error( 'json_consumer_notfound', __( 'Consumer Key is invalid' ), array( 'status' => 401 ) );
3333
}
3434

35-
return new $consumers[0];
35+
return $consumers[0];
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)