diff --git a/modules/calendar/calendar.php b/modules/calendar/calendar.php index 40d6c478b..8f9dc2261 100644 --- a/modules/calendar/calendar.php +++ b/modules/calendar/calendar.php @@ -1223,7 +1223,7 @@ function get_calendar_posts_for_week( $args = array(), $context = 'dashboard' ) $post_stati = wp_filter_object_list( $post_stati, array( 'name' => 'future' ), 'not' ); } - $args['post_status'] .= join( wp_list_pluck( $post_stati, 'name' ), ',' ); + $args['post_status'] .= implode( ',', wp_list_pluck( $post_stati, 'name' ) ); } // The WP functions for printing the category and author assign a value of 0 to the default // options, but passing this to the query is bad (trashed and auto-draft posts appear!), so diff --git a/modules/story-budget/story-budget.php b/modules/story-budget/story-budget.php index 9ce03d0d5..717361050 100644 --- a/modules/story-budget/story-budget.php +++ b/modules/story-budget/story-budget.php @@ -411,7 +411,7 @@ function get_posts_for_term( $term, $args = null ) { $post_stati = wp_filter_object_list( $post_stati, array( 'name' => 'future' ), 'not' ); } - $args['post_status'] .= join( wp_list_pluck( $post_stati, 'name' ), ',' ); + $args['post_status'] .= implode( ',', wp_list_pluck( $post_stati, 'name' ) ); } // Filter by post_author if it's set