OSDN Git Service

Comply with PHP Strict Standards
authorjtsternberg <me@jtsternberg.com>
Mon, 5 Aug 2013 03:03:22 +0000 (23:03 -0400)
committerjtsternberg <me@jtsternberg.com>
Mon, 5 Aug 2013 03:03:22 +0000 (23:03 -0400)
php/WP_CLI/CommandWithUpgrade.php
php/commands/plugin.php
php/commands/theme.php

index 0a6e901..2e7bd69 100644 (file)
@@ -316,7 +316,7 @@ abstract class CommandWithUpgrade extends \WP_CLI_Command {
         * @param  array  $fields    Data fields to display in table.
         * @param  string $data_type Plugin or Theme api endpoint
         */
-       public function search( $api, $fields, $data_type = 'plugin' ) {
+       public function _search( $api, $fields, $data_type = 'plugin' ) {
 
                // Sanitize to 1 of 2 types
                $data_type = 'plugin' === $data_type ? 'plugin' : 'theme';
index 6e58e67..83f58f3 100644 (file)
@@ -90,7 +90,7 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
                        'search' => $term,
                ) );
 
-               parent::search( $api, $fields, 'plugin' );
+               parent::_search( $api, $fields, 'plugin' );
 
        }
 
index b5852c4..0cec541 100644 (file)
@@ -79,7 +79,7 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
                        'search' => $term,
                ) );
 
-               parent::search( $api, $fields, 'theme' );
+               parent::_search( $api, $fields, 'theme' );
 
        }