File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public function update( $args, $assoc_args ) {
128128 * ---
129129 *
130130 * [--post_id=<post-id>]
131- * : Assign comments to a specific post.
131+ * : Assign comments to a specific post. Defaults to post_id 1.
132132 *
133133 * [--format=<format>]
134134 * : Render output in a particular format.
@@ -167,7 +167,7 @@ public function generate( $args, $assoc_args ) {
167167 }
168168
169169 // Make sure comment_post_ID set for older WP versions else get undefined PHP notice.
170- $ comment_post_ID = isset ( $ assoc_args ['post_id ' ] ) ? $ assoc_args ['post_id ' ] : 0 ;
170+ $ comment_post_ID = isset ( $ assoc_args ['post_id ' ] ) ? $ assoc_args ['post_id ' ] : 1 ;
171171
172172 $ comment_count = wp_count_comments ();
173173 $ total = (int )$ comment_count ->total_comments ;
You can’t perform that action at this time.
0 commit comments