1 | <?php |
||
24 | class Auto_Load_Next_Post_Admin_Notices { |
||
|
|||
25 | |||
26 | /** |
||
27 | * Constructor |
||
28 | * |
||
29 | * @since 1.3.2 |
||
30 | * @access public |
||
31 | */ |
||
32 | public function __construct() { |
||
36 | |||
37 | /** |
||
38 | * Checks if the theme supports the plugin. |
||
39 | * If not, then a notice is displayed explaining what to do next. |
||
40 | * |
||
41 | * @since 1.3.2 |
||
42 | * @access public |
||
43 | * @global $current_user |
||
44 | */ |
||
45 | public function add_notices() { |
||
85 | |||
86 | /** |
||
87 | * Checks that the WordPress version meets the plugin requirement. |
||
88 | * |
||
89 | * @since 1.0.0 |
||
90 | * @access public |
||
91 | * @global string $wp_version |
||
92 | * @return bool |
||
93 | */ |
||
94 | public function check_wp() { |
||
104 | |||
105 | /** |
||
106 | * Get the install data |
||
107 | * |
||
108 | * @since 1.4.4 |
||
109 | * @access private |
||
110 | * @return DateTime |
||
111 | */ |
||
112 | private function get_install_date() { |
||
121 | |||
122 | /** |
||
123 | * Show the WordPress requirement notice. |
||
124 | * |
||
125 | * @since 1.4.3 |
||
126 | * @access public |
||
127 | */ |
||
128 | public function requirement_wp_notice() { |
||
131 | |||
132 | /** |
||
133 | * Show the theme check notice. |
||
134 | * |
||
135 | * @since 1.3.2 |
||
136 | * @access public |
||
137 | */ |
||
138 | public function theme_check_notice() { |
||
141 | |||
142 | /** |
||
143 | * Show the plugin review notice. |
||
144 | * |
||
145 | * @since 1.4.4 |
||
146 | * @access public |
||
147 | */ |
||
148 | public function plugin_review_notice() { |
||
151 | |||
152 | } // END Auto_Load_Next_Post_Admin_Notices class. |
||
153 | |||
157 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.