@@ -46,11 +46,9 @@ discard block |
||
| 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 |
||
| 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() |