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:
bed5cb0
)
Balance ze curly braces to meet WP standards
author
Daniel Bachhuber
<d@danielbachhuber.com>
Sun, 21 Apr 2013 14:32:11 +0000
(07:32 -0700)
committer
Daniel Bachhuber
<d@danielbachhuber.com>
Sun, 21 Apr 2013 14:32:11 +0000
(07:32 -0700)
https://github.com/wp-cli/wp-cli/pull/407/files#r3886566
php/commands/term.php
patch
|
blob
|
history
diff --git
a/php/commands/term.php
b/php/commands/term.php
index
12e56bd
..
8adba26
100644
(file)
--- a/
php/commands/term.php
+++ b/
php/commands/term.php
@@
-59,14
+59,15
@@
class Term_Command extends WP_CLI_Command {
if ( isset( $assoc_args['porcelain'] ) ) {
$porcelain = true;
unset( $assoc_args['porcelain'] );
- } else
+ } else
{
$porcelain = false;
+ }
$ret = wp_insert_term( $term, $taxonomy, $assoc_args );
- if ( is_wp_error( $ret ) )
+ if ( is_wp_error( $ret ) )
{
WP_CLI::error( $ret->get_error_message() );
- else {
+
}
else {
if ( $porcelain )
WP_CLI::line( $ret['term_id'] );
else