Skip to content

Commit acc2907

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

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
@@ -145,7 +145,7 @@ public function diff( $args, $assoc_args ) {
145145

146146
// Get the field values - use isset to check if field exists on the object
147147
if ( ! isset( $from_revision->{$field} ) ) {
148-
WP_CLI::error( "Field '{$field}' not found on revision {$from_id}." );
148+
WP_CLI::error( "Field '{$field}' not found on post/revision {$from_id}." );
149149
}
150150

151151
// $to_revision is guaranteed to be non-null at this point due to earlier validation

0 commit comments

Comments
 (0)