Skip to content

Commit 9b54f2f

Browse files
swissspidyCopilot
andauthored
Update src/Post_Revision_Command.php
Co-authored-by: Copilot <[email protected]>
1 parent af620a2 commit 9b54f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Post_Revision_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function restore( $args ) {
7171
$restored_post_id = wp_restore_post_revision( $revision_id );
7272

7373
// wp_restore_post_revision() returns post ID on success, false on failure, or null if revision is same as current
74-
if ( ! $restored_post_id ) {
74+
if ( false === $restored_post_id ) {
7575
WP_CLI::error( "Failed to restore revision {$revision_id}." );
7676
}
7777

0 commit comments

Comments
 (0)