Completed
Branch master (86af2e)
by
unknown
01:53
created
includes/auto-load-next-post-core-functions.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,11 +46,9 @@  discard block
 block discarded – undo
46 46
 
47 47
 		if ( file_exists( $child_path . 'content-alnp.php' ) ) {
48 48
 			$template_redirect = $child_path . 'content-alnp.php';
49
-		}
50
-		else if( file_exists( $template_path . 'content-alnp.php') ) {
49
+		} else if( file_exists( $template_path . 'content-alnp.php') ) {
51 50
 			$template_redirect = $template_path . 'content-alnp.php';
52
-		}
53
-		else if( file_exists( $default_path . '/template/content-alnp.php' ) ) {
51
+		} else if( file_exists( $default_path . '/template/content-alnp.php' ) ) {
54 52
 			$template_redirect = $default_path . '/template/content-alnp.php';
55 53
 		}
56 54
 
@@ -122,8 +120,7 @@  discard block
 block discarded – undo
122 120
 
123 121
 				return get_permalink( $id );
124 122
 			endwhile;
125
-		}
126
-		else {
123
+		} else {
127 124
 			return false;
128 125
 		}
129 126
 	} // END alnp_get_random_page_permalink()
Please login to merge, or discard this patch.