Completed
Pull Request — master (#133)
by Sébastien
03:02
created
includes/theme-support/class-alnp-twenty-thirteen.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -29,13 +29,13 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function init() {
31 31
 		// This removes the default post navigation in the repeater template.
32
-		remove_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 );
32
+		remove_action('alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10);
33 33
 
34 34
 		// Add a compaitable post navigation.
35
-		add_action( 'alnp_load_after_content', array( __CLASS__, 'alnp_twentythirteen_post_navigation' ), 1, 10 );
35
+		add_action('alnp_load_after_content', array(__CLASS__, 'alnp_twentythirteen_post_navigation'), 1, 10);
36 36
 
37 37
 		// Add theme support and preset the theme selectors.
38
-		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
38
+		add_action('after_setup_theme', array(__CLASS__, 'add_theme_support'));
39 39
 	} // END init()
40 40
 
41 41
 	/**
@@ -56,12 +56,12 @@  discard block
 block discarded – undo
56 56
 	 * @static
57 57
 	 */
58 58
 	public static function add_theme_support() {
59
-		add_theme_support( 'auto-load-next-post', array(
59
+		add_theme_support('auto-load-next-post', array(
60 60
 			'content_container'    => '#content',
61 61
 			'title_selector'       => 'h1.entry-title',
62 62
 			'navigation_container' => 'nav.post-navigation',
63 63
 			'comments_container'   => 'div#comments',
64
-		) );
64
+		));
65 65
 	} // END add_theme_support()
66 66
 
67 67
 } // END class
Please login to merge, or discard this patch.
includes/theme-support/class-alnp-make.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function init() {
31 31
 		// Filters the repeater template location.
32
-		add_filter( 'alnp_template_redirect', array( __CLASS__, 'alnp_make_template_redirect' ) );
32
+		add_filter('alnp_template_redirect', array(__CLASS__, 'alnp_make_template_redirect'));
33 33
 
34 34
 		// Add theme support and preset the theme selectors.
35
-		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
35
+		add_action('after_setup_theme', array(__CLASS__, 'add_theme_support'));
36 36
 	} // END init()
37 37
 
38 38
 	/**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @return string
44 44
 	 */
45 45
 	public static function alnp_make_template_redirect() {
46
-		return AUTO_LOAD_NEXT_POST_FILE_PATH . '/template/theme-support/make/content-alnp.php';
46
+		return AUTO_LOAD_NEXT_POST_FILE_PATH.'/template/theme-support/make/content-alnp.php';
47 47
 	} // END alnp_make_template_redirect()
48 48
 
49 49
 	/**
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
 	 * @static
55 55
 	 */
56 56
 	public static function add_theme_support() {
57
-		add_theme_support( 'auto-load-next-post', array(
57
+		add_theme_support('auto-load-next-post', array(
58 58
 			'content_container'    => 'main.site-main',
59 59
 			'title_selector'       => 'h1.entry-title',
60 60
 			'navigation_container' => 'nav.post-navigation',
61 61
 			'comments_container'   => 'div#comments',
62
-		) );
62
+		));
63 63
 	} // END add_theme_support()
64 64
 
65 65
 } // END class
Please login to merge, or discard this patch.
includes/theme-support/class-alnp-twenty-ten.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function init() {
31 31
 		// Filters the repeater template location.
32
-		add_filter( 'alnp_template_redirect', array( __CLASS__, 'alnp_twentyten_template_redirect' ) );
32
+		add_filter('alnp_template_redirect', array(__CLASS__, 'alnp_twentyten_template_redirect'));
33 33
 
34 34
 		// Add theme support and preset the theme selectors.
35
-		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
35
+		add_action('after_setup_theme', array(__CLASS__, 'add_theme_support'));
36 36
 	} // END init()
37 37
 
38 38
 	/**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @return string
44 44
 	 */
45 45
 	public static function alnp_twentyten_template_redirect() {
46
-		return AUTO_LOAD_NEXT_POST_FILE_PATH . '/template/theme-support/twenty-ten/content-alnp.php';
46
+		return AUTO_LOAD_NEXT_POST_FILE_PATH.'/template/theme-support/twenty-ten/content-alnp.php';
47 47
 	} // END alnp_twentyten_template_redirect()
48 48
 
49 49
 	/**
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
 	 * @static
55 55
 	 */
56 56
 	public static function add_theme_support() {
57
-		add_theme_support( 'auto-load-next-post', array(
57
+		add_theme_support('auto-load-next-post', array(
58 58
 			'content_container'    => '#content',
59 59
 			'title_selector'       => 'h1.entry-title',
60 60
 			'navigation_container' => '#nav-below',
61 61
 			'comments_container'   => 'div#comments',
62
-		) );
62
+		));
63 63
 	} // END add_theme_support()
64 64
 
65 65
 } // END class
Please login to merge, or discard this patch.
includes/theme-support/class-alnp-twenty-fifteen.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function init() {
31 31
 		// Add theme support and preset the theme selectors.
32
-		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
32
+		add_action('after_setup_theme', array(__CLASS__, 'add_theme_support'));
33 33
 	} // END init()
34 34
 
35 35
 	/**
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
 	 * @static
41 41
 	 */
42 42
 	public static function add_theme_support() {
43
-		add_theme_support( 'auto-load-next-post', array(
43
+		add_theme_support('auto-load-next-post', array(
44 44
 			'content_container'    => 'main.site-main',
45 45
 			'title_selector'       => 'h1.entry-title',
46 46
 			'navigation_container' => 'nav.post-navigation',
47 47
 			'comments_container'   => 'section#comments',
48
-		) );
48
+		));
49 49
 	} // END add_theme_support()
50 50
 
51 51
 } // END class
Please login to merge, or discard this patch.
includes/theme-support/class-alnp-twenty-eleven.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -29,16 +29,16 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function init() {
31 31
 		// This removes the default post navigation in the repeater template.
32
-		remove_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 );
32
+		remove_action('alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10);
33 33
 
34 34
 		// Add a compaitable post navigation.
35
-		add_action( 'alnp_load_after_content', array( __CLASS__, 'alnp_twentyeleven_post_navigation' ), 1, 10 );
35
+		add_action('alnp_load_after_content', array(__CLASS__, 'alnp_twentyeleven_post_navigation'), 1, 10);
36 36
 
37 37
 		// Filters the repeater template location.
38
-		add_filter( 'alnp_template_redirect', array( __CLASS__, 'alnp_twentyeleven_template_redirect' ) );
38
+		add_filter('alnp_template_redirect', array(__CLASS__, 'alnp_twentyeleven_template_redirect'));
39 39
 
40 40
 		// Add theme support and preset the theme selectors.
41
-		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
41
+		add_action('after_setup_theme', array(__CLASS__, 'add_theme_support'));
42 42
 	} // END init()
43 43
 
44 44
 	/**
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 	public static function alnp_twentyeleven_post_navigation() {
51 51
 		?>
52 52
 		<nav id="nav-single">
53
-			<h3 class="assistive-text"><?php _e( 'Post navigation', 'auto-load-next-post' ); ?></h3>
54
-			<span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'auto-load-next-post' ) ); ?></span>
53
+			<h3 class="assistive-text"><?php _e('Post navigation', 'auto-load-next-post'); ?></h3>
54
+			<span class="nav-previous"><?php previous_post_link('%link', __('<span class="meta-nav">&larr;</span> Previous', 'auto-load-next-post')); ?></span>
55 55
 		</nav><!-- #nav-single -->
56 56
 		<?php
57 57
 	} // END alnp_twentyeleven_post_navigation()
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	 * @return string
65 65
 	 */
66 66
 	public static function alnp_twentyeleven_template_redirect() {
67
-		return AUTO_LOAD_NEXT_POST_FILE_PATH . '/template/theme-support/twenty-eleven/content-alnp.php';
67
+		return AUTO_LOAD_NEXT_POST_FILE_PATH.'/template/theme-support/twenty-eleven/content-alnp.php';
68 68
 	} // END alnp_twentyeleven_template_redirect()
69 69
 
70 70
 	/**
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
 	 * @static
76 76
 	 */
77 77
 	public static function add_theme_support() {
78
-		add_theme_support( 'auto-load-next-post', array(
78
+		add_theme_support('auto-load-next-post', array(
79 79
 			'content_container'    => '#content',
80 80
 			'title_selector'       => 'h1.entry-title',
81 81
 			'navigation_container' => '#nav-single',
82 82
 			'comments_container'   => 'div#comments',
83
-		) );
83
+		));
84 84
 	} // END add_theme_support()
85 85
 
86 86
 } // END class
Please login to merge, or discard this patch.
includes/theme-support/class-alnp-understrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function init() {
31 31
 		// Add theme support and preset the theme selectors.
32
-		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
32
+		add_action('after_setup_theme', array(__CLASS__, 'add_theme_support'));
33 33
 
34 34
 		// Filters the repeater template location.
35
-		add_filter( 'alnp_template_location', array( __CLASS__, 'alnp_understrap_template_location' ) );
35
+		add_filter('alnp_template_location', array(__CLASS__, 'alnp_understrap_template_location'));
36 36
 	} // END init()
37 37
 
38 38
 	/**
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
53 53
 	 * @static
54 54
 	 */
55 55
 	public static function add_theme_support() {
56
-		add_theme_support( 'auto-load-next-post', array(
56
+		add_theme_support('auto-load-next-post', array(
57 57
 			'content_container'    => 'main.site-main',
58 58
 			'title_selector'       => 'h1.entry-title',
59 59
 			'navigation_container' => 'nav.post-navigation',
60 60
 			'comments_container'   => 'div#comments',
61
-		) );
61
+		));
62 62
 	} // END add_theme_support()
63 63
 
64 64
 } // END class
Please login to merge, or discard this patch.
includes/theme-support/class-alnp-twenty-twelve.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -29,13 +29,13 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function init() {
31 31
 		// This removes the default post navigation in the repeater template.
32
-		remove_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 );
32
+		remove_action('alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10);
33 33
 
34 34
 		// Add a compaitable post navigation.
35
-		add_action( 'alnp_load_after_content', array( __CLASS__, 'alnp_twentytwelve_post_navigation' ), 1, 10 );
35
+		add_action('alnp_load_after_content', array(__CLASS__, 'alnp_twentytwelve_post_navigation'), 1, 10);
36 36
 
37 37
 		// Add theme support and preset the theme selectors.
38
-		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
38
+		add_action('after_setup_theme', array(__CLASS__, 'add_theme_support'));
39 39
 	} // END init()
40 40
 
41 41
 	/**
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
 	public static function alnp_twentytwelve_post_navigation() {
48 48
 	?>
49 49
 	<nav class="nav-single">
50
-		<h3 class="assistive-text"><?php _e( 'Post navigation', 'auto-load-next-post' ); ?></h3>
51
-		<span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'auto-load-next-post' ) . '</span> %title' ); ?></span>
50
+		<h3 class="assistive-text"><?php _e('Post navigation', 'auto-load-next-post'); ?></h3>
51
+		<span class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">'._x('&larr;', 'Previous post link', 'auto-load-next-post').'</span> %title'); ?></span>
52 52
 	</nav><!-- .nav-single -->
53 53
 	<?php
54 54
 	} // END alnp_twentytwelve_post_navigation()
@@ -61,12 +61,12 @@  discard block
 block discarded – undo
61 61
 	 * @static
62 62
 	 */
63 63
 	public static function add_theme_support() {
64
-		add_theme_support( 'auto-load-next-post', array(
64
+		add_theme_support('auto-load-next-post', array(
65 65
 			'content_container'    => '#content',
66 66
 			'title_selector'       => 'h1.entry-title',
67 67
 			'navigation_container' => '.nav-single',
68 68
 			'comments_container'   => 'div#comments',
69
-		) );
69
+		));
70 70
 	} // END add_theme_support()
71 71
 
72 72
 } // END class
Please login to merge, or discard this patch.
includes/theme-support/class-alnp-theme-support.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 */
29 29
 	public function __construct() {
30 30
 		// Update theme selectors if the theme was switched and it has theme support.
31
-		add_action( 'after_switch_theme', array( $this, 'update_alnp_theme_selectors' ), 15, 2 );
31
+		add_action('after_switch_theme', array($this, 'update_alnp_theme_selectors'), 15, 2);
32 32
 	} // END __construct()
33 33
 
34 34
 	/**
@@ -37,16 +37,16 @@  discard block
 block discarded – undo
37 37
 	 *
38 38
 	 * @access public
39 39
 	 */
40
-	public function update_alnp_theme_selectors( $stylesheet = '', $old_theme = false ) {
40
+	public function update_alnp_theme_selectors($stylesheet = '', $old_theme = false) {
41 41
 		// Check if Auto Load Next Post is supported before updating the theme selectors.
42
-		if ( is_alnp_supported() ) {
43
-			$theme_support = get_theme_support( 'auto-load-next-post' );
42
+		if (is_alnp_supported()) {
43
+			$theme_support = get_theme_support('auto-load-next-post');
44 44
 
45
-			if ( is_array( $theme_support ) ) {
45
+			if (is_array($theme_support)) {
46 46
 				// Preferred implementation, where theme provides an array of options
47
-				if ( isset( $theme_support[0] ) && is_array( $theme_support[0] ) ) {
48
-					foreach( $theme_support[0] as $key => $value ) {
49
-						if ( ! empty( $value ) ) update_option( 'auto_load_next_post_' . $key, $value );
47
+				if (isset($theme_support[0]) && is_array($theme_support[0])) {
48
+					foreach ($theme_support[0] as $key => $value) {
49
+						if ( ! empty($value)) update_option('auto_load_next_post_'.$key, $value);
50 50
 					}
51 51
 				}
52 52
 			}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,9 @@
 block discarded – undo
46 46
 				// Preferred implementation, where theme provides an array of options
47 47
 				if ( isset( $theme_support[0] ) && is_array( $theme_support[0] ) ) {
48 48
 					foreach( $theme_support[0] as $key => $value ) {
49
-						if ( ! empty( $value ) ) update_option( 'auto_load_next_post_' . $key, $value );
49
+						if ( ! empty( $value ) ) {
50
+							update_option( 'auto_load_next_post_' . $key, $value );
51
+						}
50 52
 					}
51 53
 				}
52 54
 			}
Please login to merge, or discard this patch.
includes/auto-load-next-post-core-functions.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
  */
14 14
 
15 15
 // Exit if accessed directly.
16
-if ( ! defined( 'ABSPATH' ) ) {
16
+if ( ! defined('ABSPATH')) {
17 17
 	exit;
18 18
 }
19 19
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	global $wp_query;
30 30
 
31 31
 	// If this is not a request for alnp or a singular object then bail
32
-	if ( ! isset( $wp_query->query_vars['alnp'] ) || ! is_singular() ) {
32
+	if ( ! isset($wp_query->query_vars['alnp']) || ! is_singular()) {
33 33
 		return;
34 34
 	}
35 35
 
@@ -38,27 +38,27 @@  discard block
 block discarded – undo
38 38
 	 * If theme does not have a template file for Auto Load Next Post,
39 39
 	 * the plugin will load a default template.
40 40
 	 */
41
-	$child_path    = get_stylesheet_directory() . '/' . AUTO_LOAD_NEXT_POST_TEMPLATE_PATH;
42
-	$template_path = get_template_directory() . '/' . AUTO_LOAD_NEXT_POST_TEMPLATE_PATH;
41
+	$child_path    = get_stylesheet_directory().'/'.AUTO_LOAD_NEXT_POST_TEMPLATE_PATH;
42
+	$template_path = get_template_directory().'/'.AUTO_LOAD_NEXT_POST_TEMPLATE_PATH;
43 43
 	$default_path  = AUTO_LOAD_NEXT_POST_FILE_PATH;
44 44
 
45
-	if ( file_exists( $child_path . 'content-alnp.php' ) ) {
46
-		$template_redirect = $child_path . 'content-alnp.php';
45
+	if (file_exists($child_path.'content-alnp.php')) {
46
+		$template_redirect = $child_path.'content-alnp.php';
47 47
 	}
48
-	else if( file_exists( $template_path . 'content-alnp.php') ) {
49
-		$template_redirect = $template_path . 'content-alnp.php';
48
+	else if (file_exists($template_path.'content-alnp.php')) {
49
+		$template_redirect = $template_path.'content-alnp.php';
50 50
 	}
51
-	else if( file_exists( $default_path . '/template/content-alnp.php' ) ) {
52
-		$template_redirect = $default_path . '/template/content-alnp.php';
51
+	else if (file_exists($default_path.'/template/content-alnp.php')) {
52
+		$template_redirect = $default_path.'/template/content-alnp.php';
53 53
 	}
54 54
 
55
-	$template_redirect = apply_filters( 'alnp_template_redirect', $template_redirect );
55
+	$template_redirect = apply_filters('alnp_template_redirect', $template_redirect);
56 56
 
57
-	include( $template_redirect );
57
+	include($template_redirect);
58 58
 
59 59
 	exit;
60 60
 }
61
-add_action( 'template_redirect', 'auto_load_next_post_template_redirect' );
61
+add_action('template_redirect', 'auto_load_next_post_template_redirect');
62 62
 
63 63
 /**
64 64
  * Adds the comments template after the post content.
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
  */
69 69
 function auto_load_next_post_comments() {
70 70
 	// If comments are open or we have at least one comment, load up the comment template.
71
-	if ( comments_open() || get_comments_number() ) :
71
+	if (comments_open() || get_comments_number()) :
72 72
 		comments_template();
73 73
 	endif;
74 74
 }
75
-add_action( 'alnp_load_after_content', 'auto_load_next_post_comments', 1, 5 );
75
+add_action('alnp_load_after_content', 'auto_load_next_post_comments', 1, 5);
76 76
 
77 77
 /**
78 78
  * Adds the post navigation for the previous link only after the post content.
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
 function auto_load_next_post_navigation() {
84 84
 	?>
85 85
 	<nav class="navigation post-navigation" role="navigation">
86
-		<span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'auto-load-next-post' ) . '</span> %title' ); ?></span>
86
+		<span class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">'._x('&larr;', 'Previous post link', 'auto-load-next-post').'</span> %title'); ?></span>
87 87
 	</nav>
88 88
 	<?php
89 89
 }
90
-add_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 );
90
+add_action('alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,11 +44,9 @@
 block discarded – undo
44 44
 
45 45
 	if ( file_exists( $child_path . 'content-alnp.php' ) ) {
46 46
 		$template_redirect = $child_path . 'content-alnp.php';
47
-	}
48
-	else if( file_exists( $template_path . 'content-alnp.php') ) {
47
+	} else if( file_exists( $template_path . 'content-alnp.php') ) {
49 48
 		$template_redirect = $template_path . 'content-alnp.php';
50
-	}
51
-	else if( file_exists( $default_path . '/template/content-alnp.php' ) ) {
49
+	} else if( file_exists( $default_path . '/template/content-alnp.php' ) ) {
52 50
 		$template_redirect = $default_path . '/template/content-alnp.php';
53 51
 	}
54 52
 
Please login to merge, or discard this patch.