Code Duplication    Length = 6-6 lines in 2 locations

wp-includes/comment-template.php 1 location

@@ 2059-2064 (lines=6) @@
2056
		$r['page'] = 0;
2057
	}
2058
2059
	if ( '' === $r['max_depth'] ) {
2060
		if ( get_option('thread_comments') )
2061
			$r['max_depth'] = get_option('thread_comments_depth');
2062
		else
2063
			$r['max_depth'] = -1;
2064
	}
2065
2066
	if ( '' === $r['page'] ) {
2067
		if ( empty($overridden_cpage) ) {

wp-includes/comment.php 1 location

@@ 905-910 (lines=6) @@
902
	}
903
904
	if ( null === $page ) {
905
		if ( '' === $args['max_depth'] ) {
906
			if ( get_option('thread_comments') )
907
				$args['max_depth'] = get_option('thread_comments_depth');
908
			else
909
				$args['max_depth'] = -1;
910
		}
911
912
		// Find this comment's top level parent if threading is enabled
913
		if ( $args['max_depth'] > 1 && 0 != $comment->comment_parent )