• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

equalizedigital / accessibility-checker / 22024231170

14 Feb 2026 09:04PM UTC coverage: 57.263%. First build
22024231170

Pull #1413

github

web-flow
Merge c07f857fb into 1cbcfbf9b
Pull Request #1413: Fix loopback helper warning on DNS AAAA failures

27 of 81 new or added lines in 24 files covered. (33.33%)

4147 of 7242 relevant lines covered (57.26%)

3.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

78.95
/admin/class-admin.php
1
<?php
2
/**
3
 * Class file for the Accessibility Checker plugin.
4
 *
5
 * @package Accessibility_Checker
6
 */
7

8
namespace EDAC\Admin;
9

10
use EDAC\Admin\SiteHealth\Information;
11
use EDAC\Admin\SiteHealth\Checks;
12
use EDAC\Admin\Purge_Post_Data;
13
use EDAC\Admin\Post_Save;
14
use EqualizeDigital\AccessibilityChecker\Admin\Upgrade_Promotion;
15
use EqualizeDigital\AccessibilityChecker\Admin\Admin_Footer_Text;
16
use EqualizeDigital\AccessibilityChecker\Admin\Activation_Redirect;
17

18
if ( ! defined( 'ABSPATH' ) ) {
2✔
NEW
19
        exit;
×
20
}
21

22
/**
23
 * Admin handling class.
24
 */
25
class Admin {
26

27
        /**
28
         * Meta boxes instance.
29
         *
30
         * @since 1.10.0
31
         *
32
         * @var Meta_Boxes
33
         */
34
        private Meta_Boxes $meta_boxes;
35

36
        /**
37
         * Class constructor for injecting dependencies.
38
         *
39
         * @param Meta_Boxes $meta_boxes Meta boxes instance.
40
         */
41
        public function __construct( Meta_Boxes $meta_boxes ) {
42
                $this->meta_boxes = $meta_boxes;
2✔
43
        }
44

45
        /**
46
         * Initialize.
47
         *
48
         * @return void
49
         */
50
        public function init(): void {
51

52
                $update_database = new Update_Database();
2✔
53
                $update_database->init_hooks();
2✔
54

55
                add_action( 'admin_enqueue_scripts', [ 'EDAC\Admin\Enqueue_Admin', 'enqueue' ] );
2✔
56
                add_action( 'wp_trash_post', [ Purge_Post_Data::class, 'delete_post' ] );
2✔
57
                add_action( 'save_post', [ Post_Save::class, 'delete_issue_data_on_post_trashing' ], 10, 3 );
2✔
58
                add_filter( 'edac_filter_generate_link_type_ref', [ $this, 'add_ref_param_to_links' ], 5, 1 );
2✔
59

60
                $plugin_action_links = new Plugin_Action_Links();
2✔
61
                $plugin_action_links->init_hooks();
2✔
62

63
                $admin_notices = new Admin_Notices();
2✔
64
                $admin_notices->init_hooks();
2✔
65

66
                $widgets = new Widgets();
2✔
67
                $widgets->init_hooks();
2✔
68

69
                $site_health_info = new Information();
2✔
70
                $site_health_info->init_hooks();
2✔
71

72
                $site_health_checks = new Checks();
2✔
73
                $site_health_checks->init_hooks();
2✔
74

75
                $upgrade_promotion = new Upgrade_Promotion();
2✔
76
                $upgrade_promotion->init();
2✔
77

78
                $plugin_row_meta = new Plugin_Row_Meta();
2✔
79
                $plugin_row_meta->init_hooks();
2✔
80

81
                $admin_footer_text = new Admin_Footer_Text();
2✔
82
                $admin_footer_text->init();
2✔
83

84
                $activation_redirect = new Activation_Redirect();
2✔
85
                $activation_redirect->init();
2✔
86

87
                $this->init_ajax();
2✔
88

89
                $this->meta_boxes->init_hooks();
2✔
90
        }
91

92
        /**
93
         * Initialize ajax.
94
         *
95
         * @return void
96
         */
97
        private function init_ajax(): void {
98
                if ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
2✔
99
                        return;
2✔
100
                }
101

102
                $ajax = new Ajax();
×
103
                $ajax->init_hooks();
×
104

105
                $frontend_highlight = new Frontend_Highlight();
×
106
                $frontend_highlight->init_hooks();
×
107
        }
108

109
        /**
110
         * Add ref param in links that are used through the plugin link helpers.
111
         *
112
         * @param string $ref Ref param.
113
         * @return string
114
         */
115
        public function add_ref_param_to_links( string $ref ): string {
116
                if ( defined( 'EDAC_REF_PARAM' ) && ! empty( EDAC_REF_PARAM ) ) {
×
117
                        return EDAC_REF_PARAM;
×
118
                } else {
119
                        return $ref;
×
120
                }
121
        }
122
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc