OSDN Git Service

Merge pull request #801 from goldenapples into master
authorscribu <mail@scribu.net>
Tue, 1 Oct 2013 23:04:48 +0000 (02:04 +0300)
committerscribu <mail@scribu.net>
Tue, 1 Oct 2013 23:04:48 +0000 (02:04 +0300)
1  2 
features/post.feature
php/commands/post.php

Simple merge
@@@ -124,7 -125,8 +124,8 @@@ class Post_Command extends \WP_CLI\Comm
        protected function _edit( $content, $title ) {
                $content = apply_filters( 'the_editor_content', $content );
                $output = \WP_CLI\Utils\launch_editor_for_input( $content, $title );
-               return apply_filters( 'content_save_pre', $output );
 -        return ( is_string( $output ) ) ?
 -            apply_filters( 'content_save_pre', $output ) : $output;
++              return ( is_string( $output ) ) ?
++                      apply_filters( 'content_save_pre', $output ) : $output;
        }
  
        /**