1 | <?php |
||
24 | class Auto_Load_Next_Post_Admin_Menus { |
||
|
|||
25 | |||
26 | /** |
||
27 | * Constructor |
||
28 | * |
||
29 | * @since 1.0.0 |
||
30 | * @access public |
||
31 | */ |
||
32 | public function __construct() { |
||
36 | |||
37 | /** |
||
38 | * Add menu items. |
||
39 | * |
||
40 | * @since 1.0.0 |
||
41 | * @access public |
||
42 | * @global $menu |
||
43 | * @global $auto_load_next_post |
||
44 | * @global $wp_version |
||
45 | */ |
||
46 | public function admin_menu() { |
||
51 | |||
52 | /** |
||
53 | * Initialize the Auto Load Next Post settings page. |
||
54 | * @since 1.0.0 |
||
55 | * @access public |
||
56 | */ |
||
57 | public function settings_page() { |
||
62 | |||
63 | } // END Auto_Load_Next_Post_Admin_Menus class. |
||
64 | |||
68 |
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.