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:
f89c6f5
)
fix `wp post edit`
author
scribu
<mail@scribu.net>
Sat, 28 Sep 2013 14:35:28 +0000
(17:35 +0300)
committer
scribu
<mail@scribu.net>
Sat, 28 Sep 2013 14:37:43 +0000
(17:37 +0300)
see #779
php/commands/post.php
patch
|
blob
|
history
diff --git
a/php/commands/post.php
b/php/commands/post.php
index
d946293
..
a92b2f4
100644
(file)
--- 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 ) {