1 | <?php |
||
20 | class Auto_Load_Next_Post_Admin_Notices { |
||
21 | |||
22 | /** |
||
23 | * Activation date. |
||
24 | * |
||
25 | * @access public |
||
26 | * @static |
||
27 | * @since 1.4.10 |
||
28 | * @var string |
||
29 | */ |
||
30 | public static $install_date; |
||
31 | |||
32 | /** |
||
33 | * Constructor |
||
34 | * |
||
35 | * @access public |
||
36 | * @since 1.3.2 |
||
37 | * @version 1.4.10 |
||
38 | */ |
||
39 | public function __construct() { |
||
47 | |||
48 | /** |
||
49 | * Checks that the WordPress version meets the plugin requirement. |
||
50 | * |
||
51 | * @access public |
||
52 | * @since 1.0.0 |
||
53 | * @global string $wp_version |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function check_wp() { |
||
66 | |||
67 | /** |
||
68 | * Dont bug the user if they do not want any notices. |
||
69 | * |
||
70 | * @access public |
||
71 | * @since 1.4.10 |
||
72 | * @global $current_user |
||
73 | */ |
||
74 | public function dont_bug_me() { |
||
84 | |||
85 | /** |
||
86 | * Checks if the theme supports the plugin and display the plugin review |
||
87 | * notice after 7 days or more from the time the plugin was installed. |
||
88 | * |
||
89 | * @access public |
||
90 | * @since 1.3.2 |
||
91 | * @version 1.4.10 |
||
92 | * @global $current_user |
||
93 | */ |
||
94 | public function add_notices() { |
||
122 | |||
123 | /** |
||
124 | * Show the WordPress requirement notice. |
||
125 | * |
||
126 | * @access public |
||
127 | * @since 1.4.3 |
||
128 | */ |
||
129 | public function requirement_wp_notice() { |
||
132 | |||
133 | /** |
||
134 | * Show the theme check notice. |
||
135 | * |
||
136 | * @access public |
||
137 | * @since 1.3.2 |
||
138 | */ |
||
139 | public function theme_check_notice() { |
||
142 | |||
143 | /** |
||
144 | * Show the plugin review notice. |
||
145 | * |
||
146 | * @access public |
||
147 | * @since 1.4.4 |
||
148 | * @version 1.4.10 |
||
149 | */ |
||
150 | public function plugin_review_notice() { |
||
155 | |||
156 | } // END class. |
||
157 | |||
161 |
An exit expression should only be used in rare cases. For example, if you write a short command line script.
In most cases however, using an
exit
expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.