Skip to content

Commit 9728388

Browse files
committed
Check Writable Cache dir
1 parent 53ffbd2 commit 9728388

2 files changed

Lines changed: 162 additions & 155 deletions

File tree

command.php

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

33
# Check Exist WP-CLI
4-
if ( ! class_exists('WP_CLI')) {
4+
if (! class_exists('WP_CLI')) {
55
return;
66
}
77

@@ -66,10 +66,10 @@
6666

6767
# Clear Cache
6868
if (isset($assoc_args['clear'])) {
69-
$reference->run_clear_cache();
69+
$reference->runClearCache();
7070
# Show in browser
7171
} elseif (isset($assoc_args['browser'])) {
72-
$reference->run_browser();
72+
$reference->runBrowser();
7373
# Search
7474
} else {
7575
//Prepare Word
@@ -87,15 +87,15 @@
8787
foreach ($list as $action) {
8888
if (isset($assoc_args[$action])) {
8989
$word = $assoc_args[$action];
90-
$reference->run_search($word, array('source' => true, 'allowed_filter' => $action));
90+
$reference->runSearch($word, array('source' => true, 'allowed_filter' => $action));
9191
$custom_search = true;
9292
break;
9393
}
9494
}
9595

9696
//Common Search
97-
if ( ! $custom_search) {
98-
$reference->run_search($word, array('source' => true));
97+
if (! $custom_search) {
98+
$reference->runSearch($word, array('source' => true));
9999
}
100100
}
101101
});

0 commit comments

Comments
 (0)