@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Admin View: Settings |
|
4 | - */ |
|
3 | + * Admin View: Settings |
|
4 | + */ |
|
5 | 5 | if ( ! defined('ABSPATH')) { |
6 | 6 | exit; |
7 | 7 | } |
@@ -46,25 +46,25 @@ discard block |
||
46 | 46 | * @param array $requirements Minimum and Recommended version of PHP. |
47 | 47 | */ |
48 | 48 | public function __construct($plugin = array(), $requirements = array()) { |
49 | - if ( is_array($plugin) && !empty($plugin['name']) ) { |
|
49 | + if (is_array($plugin) && ! empty($plugin['name'])) { |
|
50 | 50 | $this->plugin_name = $plugin['name']; |
51 | 51 | } else { |
52 | 52 | $this->plugin_name = ''; |
53 | 53 | } |
54 | 54 | |
55 | - if ( is_array($plugin) && !empty($plugin['textdomain']) ) { |
|
55 | + if (is_array($plugin) && ! empty($plugin['textdomain'])) { |
|
56 | 56 | $this->textdomain = $plugin['textdomain']; |
57 | 57 | } else { |
58 | 58 | $this->textdomain = 'wpupdatephp'; |
59 | 59 | } |
60 | 60 | |
61 | - if ( is_array($requirements) && !empty($requirements['recommended_version']) ) { |
|
61 | + if (is_array($requirements) && ! empty($requirements['recommended_version'])) { |
|
62 | 62 | $this->minimum_version = $requirements['minimum_version']; |
63 | 63 | } else { |
64 | 64 | $this->minimum_version = '5.3.0'; |
65 | 65 | } |
66 | 66 | |
67 | - if ( is_array($requirements) && !empty($requirements['recommended_version']) ) { |
|
67 | + if (is_array($requirements) && ! empty($requirements['recommended_version'])) { |
|
68 | 68 | $this->recommended_version = $requirements['recommended_version']; |
69 | 69 | } else { |
70 | 70 | $this->recommended_version = null; |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * @param callable $callback Callable that displays admin notice. |
127 | 127 | */ |
128 | 128 | private function load_version_notice($callback) { |
129 | - if ( is_admin() && ! defined('DOING_AJAX')) { |
|
129 | + if (is_admin() && ! defined('DOING_AJAX')) { |
|
130 | 130 | add_action('admin_notices', $callback); |
131 | 131 | add_action('network_admin_notices', $callback); |
132 | 132 | } |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Runs on Uninstall of Auto Load Next Post |
|
4 | - * |
|
5 | - * @since 1.0.0 |
|
6 | - * @author Sébastien Dumont |
|
7 | - * @category Core |
|
8 | - * @package Auto Load Next Post |
|
9 | - * @license GPL-2.0+ |
|
10 | - */ |
|
3 | + * Runs on Uninstall of Auto Load Next Post |
|
4 | + * |
|
5 | + * @since 1.0.0 |
|
6 | + * @author Sébastien Dumont |
|
7 | + * @category Core |
|
8 | + * @package Auto Load Next Post |
|
9 | + * @license GPL-2.0+ |
|
10 | + */ |
|
11 | 11 | if ( ! defined('WP_UNINSTALL_PLUGIN')) { |
12 | 12 | exit(); |
13 | 13 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * @package Auto Load Next Post |
9 | 9 | * @license GPL-2.0+ |
10 | 10 | */ |
11 | -if ( ! defined( 'ABSPATH' ) || ! defined('WP_UNINSTALL_PLUGIN')) { |
|
11 | +if ( ! defined('ABSPATH') || ! defined('WP_UNINSTALL_PLUGIN')) { |
|
12 | 12 | exit(); |
13 | 13 | } |
14 | 14 |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Help is provided for this plugin on the plugin pages. |
|
4 | - * |
|
5 | - * @since 1.0.0 |
|
6 | - * @author Sébastien Dumont |
|
7 | - * @category Admin |
|
8 | - * @package Auto Load Next Post |
|
9 | - * @license GPL-2.0+ |
|
10 | - */ |
|
3 | + * Help is provided for this plugin on the plugin pages. |
|
4 | + * |
|
5 | + * @since 1.0.0 |
|
6 | + * @author Sébastien Dumont |
|
7 | + * @category Admin |
|
8 | + * @package Auto Load Next Post |
|
9 | + * @license GPL-2.0+ |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | if ( ! defined('ABSPATH')) { |
13 | 13 | exit; |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Auto Load Next Post Formatting |
|
4 | - * |
|
5 | - * @since 1.0.0 |
|
6 | - * @author Sébastien Dumont |
|
7 | - * @category Core |
|
8 | - * @package Auto Load Next Post/Functions |
|
9 | - * @license GPL-2.0+ |
|
10 | - */ |
|
3 | + * Auto Load Next Post Formatting |
|
4 | + * |
|
5 | + * @since 1.0.0 |
|
6 | + * @author Sébastien Dumont |
|
7 | + * @category Core |
|
8 | + * @package Auto Load Next Post/Functions |
|
9 | + * @license GPL-2.0+ |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | if ( ! defined('ABSPATH')) { |
13 | 13 | exit; |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file loads the content partially. |
|
4 | - * |
|
5 | - * @version 1.4.4 |
|
6 | - */ |
|
3 | + * This file loads the content partially. |
|
4 | + * |
|
5 | + * @version 1.4.4 |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | // Fetch plugin settings. |
9 | 9 | $remove_comments = get_option('auto_load_next_post_remove_comments'); |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Setup menus in the WordPress admin. |
|
4 | - * |
|
5 | - * @since 1.0.0 |
|
6 | - * @author Sébastien Dumont |
|
7 | - * @category Admin |
|
8 | - * @package Auto Load Next Post |
|
9 | - * @license GPL-2.0+ |
|
10 | - */ |
|
3 | + * Setup menus in the WordPress admin. |
|
4 | + * |
|
5 | + * @since 1.0.0 |
|
6 | + * @author Sébastien Dumont |
|
7 | + * @category Admin |
|
8 | + * @package Auto Load Next Post |
|
9 | + * @license GPL-2.0+ |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | if ( ! defined('ABSPATH')) { |
13 | 13 | exit; |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Auto Load Next Post Core Functions |
|
4 | - * |
|
5 | - * General core functions available on both the front-end and admin. |
|
6 | - * |
|
7 | - * @since 1.0.0 |
|
8 | - * @author Sébastien Dumont |
|
9 | - * @category Core |
|
10 | - * @package Auto Load Next Post |
|
11 | - * @license GPL-2.0+ |
|
12 | - */ |
|
3 | + * Auto Load Next Post Core Functions |
|
4 | + * |
|
5 | + * General core functions available on both the front-end and admin. |
|
6 | + * |
|
7 | + * @since 1.0.0 |
|
8 | + * @author Sébastien Dumont |
|
9 | + * @category Core |
|
10 | + * @package Auto Load Next Post |
|
11 | + * @license GPL-2.0+ |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | if ( ! defined('ABSPATH')) { |
15 | 15 | exit; |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Display notices in the WordPress admin. |
|
4 | - * |
|
5 | - * @since 1.3.2 |
|
6 | - * @author Sébastien Dumont |
|
7 | - * @category Admin |
|
8 | - * @package Auto Load Next Post |
|
9 | - * @license GPL-2.0+ |
|
10 | - */ |
|
3 | + * Display notices in the WordPress admin. |
|
4 | + * |
|
5 | + * @since 1.3.2 |
|
6 | + * @author Sébastien Dumont |
|
7 | + * @category Admin |
|
8 | + * @package Auto Load Next Post |
|
9 | + * @license GPL-2.0+ |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | if ( ! defined('ABSPATH')) { |
13 | 13 | exit; |