OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52f7642
)
This method has been replaced by a helper util of the same functionality
author
Daniel Bachhuber
<d@danielbachhuber.com>
Tue, 20 Aug 2013 14:38:31 +0000
(07:38 -0700)
committer
Daniel Bachhuber
<d@danielbachhuber.com>
Tue, 20 Aug 2013 14:38:31 +0000
(07:38 -0700)
php/WP_CLI/CommandWithDBObject.php
patch
|
blob
|
history
diff --git
a/php/WP_CLI/CommandWithDBObject.php
b/php/WP_CLI/CommandWithDBObject.php
index
083b068
..
7978ce3
100644
(file)
--- a/
php/WP_CLI/CommandWithDBObject.php
+++ b/
php/WP_CLI/CommandWithDBObject.php
@@
-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;