• 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

29.41
/admin/class-meta-boxes.php
1
<?php
2
/**
3
 * Class for handling the editor meta box.
4
 *
5
 * @package Accessibility_Checker
6
 */
7

8
namespace EDAC\Admin;
9

10
if ( ! defined( 'ABSPATH' ) ) {
2✔
NEW
11
        exit;
×
12
}
13

14
/**
15
 * Class Meta_Box
16
 *
17
 * Handles the editor meta box registration and rendering.
18
 */
19
class Meta_Boxes {
20

21
        /**
22
         * Initialize the hooks for the editor meta box.
23
         *
24
         * @return void
25
         */
26
        public function init_hooks(): void {
27
                add_action( 'add_meta_boxes', [ $this, 'register_meta_boxes' ] );
4✔
28
        }
29

30
        /**
31
         * Register custom meta boxes for each post type.
32
         *
33
         * @since 1.10.0
34
         *
35
         * @return void
36
         */
37
        public function register_meta_boxes(): void {
38
                $post_types = Settings::get_scannable_post_types();
×
39
                if ( $post_types ) {
×
40
                        foreach ( $post_types as $post_type ) {
×
41
                                add_meta_box(
×
42
                                        'edac-meta-box',
×
43
                                        __( 'Accessibility Checker', 'accessibility-checker' ),
×
44
                                        [ $this, 'render' ],
×
45
                                        $post_type,
×
46
                                        'normal',
×
47
                                        'high'
×
48
                                );
×
49
                        }
50
                }
51
        }
52

53
        /**
54
         * Render the custom meta box html.
55
         *
56
         * @since 1.10.0
57
         *
58
         * @return void
59
         */
60
        public function render(): void {
61
                /**
62
                 * Fires before the meta box is rendered.
63
                 *
64
                 * @since 1.10.0
65
                 */
66
                do_action( 'edac_before_meta_box' );
2✔
67
                include_once plugin_dir_path( __DIR__ ) . 'partials/custom-meta-box.php';
2✔
68
                /**
69
                 * Fires after the meta box is rendered.
70
                 *
71
                 * @since 1.10.0
72
                 */
73
                do_action( 'edac_after_meta_box' );
2✔
74
        }
75
}
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