@@ -32,8 +32,7 @@ |
||
32 | 32 | |
33 | 33 | // Delete Install Date |
34 | 34 | delete_option( 'auto_load_next_post_install_date' ); |
35 | - } |
|
36 | - else { |
|
35 | + } else { |
|
37 | 36 | // Delete Uninstall Data |
38 | 37 | delete_site_option( 'auto_load_next_post_uninstall_data' ); |
39 | 38 |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * The list is in the order to look for the templates that store the content. |
97 | 97 | * |
98 | 98 | * @since 1.6.0 |
99 | - * @return array |
|
99 | + * @return string[] |
|
100 | 100 | */ |
101 | 101 | function alnp_get_locations() { |
102 | 102 | return array( |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * @since 1.6.0 |
123 | 123 | * @param string $post_type |
124 | 124 | * @param string $post_format |
125 | - * @return array |
|
125 | + * @return string[] |
|
126 | 126 | */ |
127 | 127 | function alnp_get_templates( $post_type = 'post', $post_format = '' ) { |
128 | 128 | $get_standard = array( |
@@ -327,8 +327,7 @@ |
||
327 | 327 | // If content is found then load the template part. |
328 | 328 | if ( $content_found && empty( $use_fallback ) ) { |
329 | 329 | locate_template( $template, true, false ); |
330 | - } |
|
331 | - else { |
|
330 | + } else { |
|
332 | 331 | do_action( 'alnp_load_content', $post_type ); |
333 | 332 | } |
334 | 333 | } // END alnp_load_content() |
@@ -35,7 +35,7 @@ |
||
35 | 35 | * @access public |
36 | 36 | * @static |
37 | 37 | * @since 1.0 |
38 | - * @param array $plugin Plugin data |
|
38 | + * @param array $plugins Plugin data |
|
39 | 39 | */ |
40 | 40 | public static function init( $plugins ) { |
41 | 41 | ?> |
@@ -31,9 +31,11 @@ |
||
31 | 31 | // Load content after the loop. |
32 | 32 | do_action( 'alnp_load_after_loop' ); |
33 | 33 | |
34 | -else : |
|
34 | +else { |
|
35 | + : |
|
35 | 36 | |
36 | 37 | // Load content if there are no more posts. |
37 | 38 | do_action( 'alnp_no_more_posts' ); |
39 | +} |
|
38 | 40 | |
39 | 41 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
31 | 31 | // Load content after the loop. |
32 | 32 | do_action( 'alnp_load_after_loop' ); |
33 | 33 | |
34 | -else : |
|
34 | +else { |
|
35 | + : |
|
35 | 36 | |
36 | 37 | // Load content if there are no more posts. |
37 | 38 | do_action( 'alnp_no_more_posts' ); |
39 | +} |
|
38 | 40 | |
39 | 41 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
31 | 31 | // Load content after the loop. |
32 | 32 | do_action( 'alnp_load_after_loop' ); |
33 | 33 | |
34 | -else : |
|
34 | +else { |
|
35 | + : |
|
35 | 36 | |
36 | 37 | // Load content if there are no more posts. |
37 | 38 | do_action( 'alnp_no_more_posts' ); |
39 | +} |
|
38 | 40 | |
39 | 41 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
31 | 31 | // Load content after the loop. |
32 | 32 | do_action( 'alnp_load_after_loop' ); |
33 | 33 | |
34 | -else : |
|
34 | +else { |
|
35 | + : |
|
35 | 36 | |
36 | 37 | // Load content if there are no more posts. |
37 | 38 | do_action( 'alnp_no_more_posts' ); |
39 | +} |
|
38 | 40 | |
39 | 41 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
31 | 31 | // Load content after the loop. |
32 | 32 | do_action( 'alnp_load_after_loop' ); |
33 | 33 | |
34 | -else : |
|
34 | +else { |
|
35 | + : |
|
35 | 36 | |
36 | 37 | // Load content if there are no more posts. |
37 | 38 | do_action( 'alnp_no_more_posts' ); |
39 | +} |
|
38 | 40 | |
39 | 41 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
31 | 31 | // Load content after the loop. |
32 | 32 | do_action( 'alnp_load_after_loop' ); |
33 | 33 | |
34 | -else : |
|
34 | +else { |
|
35 | + : |
|
35 | 36 | |
36 | 37 | // Load content if there are no more posts. |
37 | 38 | do_action( 'alnp_no_more_posts' ); |
39 | +} |
|
38 | 40 | |
39 | 41 | endif; // END if have_posts() |