|
1 | 1 | <?php
|
2 | 2 | /**
|
3 | 3 | * Class responsible for admin side functionalities.
|
| 4 | + * |
| 5 | + * The long term plan is to break up admin functionality into smaller, more focused |
| 6 | + * files to improve maintainability. This could also include: |
| 7 | + * - Moving OAuth related code to oauth.php |
| 8 | + * - Moving account creation code to account.php |
| 9 | + * - Moving settings page code to settings.php |
| 10 | + * - Moving notices code to notices.php (already done) |
| 11 | + * This will help avoid having too much code in a single file and make the codebase more modular. |
4 | 12 | *
|
5 | 13 | * @package Mailchimp
|
6 | 14 | */
|
@@ -38,28 +46,6 @@ public function init() {
|
38 | 46 | add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_page_scripts' ) );
|
39 | 47 | add_action( 'admin_menu', array( $this, 'add_create_account_page' ) );
|
40 | 48 | add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
|
41 |
| - |
42 |
| - /** |
43 |
| - * Load modularized admin functionality here |
44 |
| - */ |
45 |
| - $this->require_admin_utils(); |
46 |
| - } |
47 |
| - |
48 |
| - /** |
49 |
| - * Require admin utils. |
50 |
| - * |
51 |
| - * Currently includes admin notices from a single file. Long term plan is to break up admin |
52 |
| - * functionality into smaller, more focused files to improve maintainability. This could also include: |
53 |
| - * - Moving OAuth related code to oauth.php |
54 |
| - * - Moving account creation code to account.php |
55 |
| - * - Moving settings page code to settings.php |
56 |
| - * - Moving notices code to notices.php (already done) |
57 |
| - * This will help avoid having too much code in a single file and make the codebase more modular. |
58 |
| - * |
59 |
| - * @since 1.7.0 |
60 |
| - */ |
61 |
| - private function require_admin_utils() { |
62 |
| - include_once MCSF_DIR . 'includes/admin/admin-notices.php'; |
63 | 49 | }
|
64 | 50 |
|
65 | 51 | /**
|
|
0 commit comments