Skip to content

Commit

Permalink
Import WP_CLI\Utils
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Aug 31, 2023
1 parent d58dac1 commit 9105e51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion php/WP_CLI/Bootstrap/IncludeRequestsAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use WP_CLI\Autoloader;
use WP_CLI\RequestsLibrary;
use WP_CLI\Utils;

/**
* Class IncludeRequestsAutoloader.
Expand Down Expand Up @@ -57,7 +58,7 @@ public function process( BootstrapState $state ) {
if ( is_bool( $alias_path ) || empty( $alias_path ) ) {
return $state;
}
if ( ! \WP_CLI\Utils\is_path_absolute( $alias_path ) ) {
if ( ! Utils\is_path_absolute( $alias_path ) ) {
$alias_path = getcwd() . '/' . $alias_path;
}
$wp_root = rtrim( $alias_path, '/' );
Expand Down

0 comments on commit 9105e51

Please sign in to comment.