OSDN Git Service

fix `wp post edit`
authorscribu <mail@scribu.net>
Sat, 28 Sep 2013 14:35:28 +0000 (17:35 +0300)
committerscribu <mail@scribu.net>
Sat, 28 Sep 2013 14:37:43 +0000 (17:37 +0300)
see #779

php/commands/post.php

index d946293..a92b2f4 100644 (file)
@@ -119,7 +119,7 @@ class Post_Command extends \WP_CLI\CommandWithDBObject {
                if ( $r === false )
                        \WP_CLI::warning( 'No change made to post content.', 'Aborted' );
                else
-                       parent::update( $args, array( 'post_content' => $r ) );
+                       self::update( $args, array( 'post_content' => $r ) );
        }
 
        protected function _edit( $content, $title ) {