From 601f03ecff216d02d0bd58e0e325c8dbc62a4670 Mon Sep 17 00:00:00 2001 From: scribu Date: Sat, 28 Sep 2013 17:35:28 +0300 Subject: [PATCH] fix `wp post edit` see #779 --- php/commands/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/commands/post.php b/php/commands/post.php index d946293c..a92b2f4f 100644 --- a/php/commands/post.php +++ b/php/commands/post.php @@ -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 ) { -- 2.11.0