OSDN Git Service

This method has been replaced by a helper util of the same functionality
authorDaniel Bachhuber <d@danielbachhuber.com>
Tue, 20 Aug 2013 14:38:31 +0000 (07:38 -0700)
committerDaniel Bachhuber <d@danielbachhuber.com>
Tue, 20 Aug 2013 14:38:31 +0000 (07:38 -0700)
php/WP_CLI/CommandWithDBObject.php

index 083b068..7978ce3 100644 (file)
@@ -68,23 +68,6 @@ abstract class CommandWithDBObject extends \WP_CLI_Command {
                return $status;
        }
 
-       protected function assoc_array_to_table( $fields ) {
-               $rows = array();
-
-               foreach ( $fields as $field => $value ) {
-                       if ( !is_string($value) ) {
-                               $value = json_encode( $value );
-                       }
-
-                       $rows[] = (object) array(
-                               'Field' => $field,
-                               'Value' => $value
-                       );
-               }
-
-               \WP_CLI\Utils\format_items( 'table', $rows, array( 'Field', 'Value' ) );
-       }
-
        public function delete( $args, $assoc_args ) {
                $status = 0;