| @@ -254,12 +254,9 @@ | ||
| 254 | 254 | |
| 255 | 255 | $userAccessManager->addActionsAndFilters(); |
| 256 | 256 | |
| 257 | 257 | //Add the cli interface to the known commands |
| 258 | - if (defined('WP_CLI') === true | |
| 259 | - && WP_CLI === true | |
| 260 | - && class_exists('WP_CLI_Command') | |
| 261 | - ) { | |
| 258 | + if (defined('WP_CLI') === true && WP_CLI === true) { | |
| 262 | 259 | $cliWrapper = new WordpressCli(); |
| 263 | 260 | |
| 264 | 261 | $groupCommand = new GroupCommand($cliWrapper, $userGroupHandler, $userGroupFactory); |
| 265 | 262 | $objectCommand = new ObjectCommand($cliWrapper, $userGroupHandler); |