OSDN Git Service

Balance ze curly braces to meet WP standards
authorDaniel Bachhuber <d@danielbachhuber.com>
Sun, 21 Apr 2013 14:32:11 +0000 (07:32 -0700)
committerDaniel 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

index 12e56bd..8adba26 100644 (file)
@@ -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