File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22
33# Check Exist WP-CLI
4- if ( ! class_exists ('WP_CLI ' )) {
4+ if (! class_exists ('WP_CLI ' )) {
55 return ;
66}
77
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
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});
You can’t perform that action at this time.
0 commit comments