Skip to content

Commit 2ab1a72

Browse files
committed
Fix PHP 5.3 compatibility issue
1 parent 2ebb78a commit 2ab1a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Post_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ public function generate( $args, $assoc_args ) {
538538

539539
$args = array(
540540
'post_type' => $post_type,
541-
'post_title' => ! empty( $post_title && $i === $total ) ? "$label" : "$label $i",
541+
'post_title' => ! empty( $post_title ) && $i === $total ? "$label" : "$label $i",
542542
'post_status' => $post_status,
543543
'post_author' => $post_author,
544544
'post_parent' => $current_parent,

0 commit comments

Comments
 (0)