Code Duplication    Length = 3-6 lines in 2 locations

includes/class-sensei-utils.php 2 locations

@@ 173-178 (lines=6) @@
170
		// Are we checking for specific comment_approved statuses?
171
		if ( isset($args['status']) ) {
172
			// Temporarily store as a custom status if requesting an array...
173
			if ( is_array( $args['status'] ) && version_compare($wp_version, '4.1', '<') ) {
174
				// Encode now, decode later
175
				$args['status'] = implode( ",", $args['status'] );
176
				// ...use a filter to switch the encoding back
177
				add_filter( 'comments_clauses', array( __CLASS__, 'comment_multiple_status_filter' ) );
178
			}
179
		}
180
		else {
181
			$args['status'] = 'any'; // 'log' == 'sensei_user_answer'
@@ 185-187 (lines=3) @@
182
		}
183
184
		// Take into account WP < 4.1 will automatically add ' comment_approved = 1 OR comment_approved = 0 '
185
		if ( ( is_array( $args['status'] ) || 'any' == $args['status'] ) && version_compare($wp_version, '4.1', '<') ) {
186
			add_filter( 'comments_clauses', array( __CLASS__, 'comment_any_status_filter' ) );
187
		}
188
189
        //Get the comments
190
        /**