Skip to content

Commit 2c5201d

Browse files
authored
Require WP-CLI v2.13 (#91)
1 parent 827c720 commit 2c5201d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"wp-cli/wp-cli": "^2.12"
15+
"wp-cli/wp-cli": "^2.13"
1616
},
1717
"require-dev": {
1818
"wp-cli/wp-cli-tests": "^5"

‎src/EvalFile_Command.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use WP_CLI\Utils;
4+
use WP_CLI\Path;
45

56
class EvalFile_Command extends WP_CLI_Command {
67

@@ -103,7 +104,7 @@ private static function execute_eval( $file, $positional_args, $use_include ) {
103104
$file_contents = (string) file_get_contents( $file );
104105

105106
// Adjust for __FILE__ and __DIR__ magic constants.
106-
$file_contents = Utils\replace_path_consts( $file_contents, $file );
107+
$file_contents = Path::replace_path_consts( $file_contents, $file );
107108

108109
// Check for and remove she-bang.
109110
if ( 0 === strncmp( $file_contents, '#!', 2 ) ) {

0 commit comments

Comments
 (0)