OSDN Git Service

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

index 2e7bd69..edac698 100644 (file)
@@ -349,7 +349,7 @@ abstract class CommandWithUpgrade extends \WP_CLI_Command {
         * @param string name
         * @return string
         */
-       public function parse_search_key( $name, $data_type = 'plugin' ) {
+       public function _parse_search_key( $name, $data_type = 'plugin' ) {
 
                // Sanitize to 1 of 2 types
                $data_type = 'plugin' === $data_type ? 'plugin' : 'theme';
index 83f58f3..f9d0dd5 100644 (file)
@@ -542,7 +542,7 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
         * @return string
         */
        public function parse_search_key( $name ) {
-               return parent::parse_search_key( $name, 'plugin' );
+               return parent::_parse_search_key( $name, 'plugin' );
        }
 
        /**
index 0cec541..4ac4a1a 100644 (file)
@@ -370,7 +370,7 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
         * @return string
         */
        public function parse_search_key( $name ) {
-               return parent::parse_search_key( $name, 'theme' );
+               return parent::_parse_search_key( $name, 'theme' );
        }
 }