Skip to content

Commit b14a0d3

Browse files
authored
Update wp-cli.php to fix lint errors
1 parent 6661ed3 commit b14a0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/wp-cli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
// Set common headers, to prevent warnings from plugins.
2121
$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.0';
22-
$_SERVER['HTTP_USER_AGENT'] = ( !empty(getenv('WP_CLI_USER_AGENT')) ? getenv('WP_CLI_USER_AGENT') : 'WP CLI' . ' version ' . WP_CLI_VERSION );
22+
$_SERVER['HTTP_USER_AGENT'] = ( ! empty( getenv( 'WP_CLI_USER_AGENT' ) ) ? getenv( 'WP_CLI_USER_AGENT' ) : 'WP CLI ' . WP_CLI_VERSION );
2323
$_SERVER['REQUEST_METHOD'] = 'GET';
2424
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
2525

0 commit comments

Comments
 (0)