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

equalizedigital / accessibility-checker / 15452164054

04 Jun 2025 08:32PM UTC coverage: 28.973%. First build
15452164054

Pull #1004

github

web-flow
Merge 28c013970 into 147ba9c27
Pull Request #1004: Release v1.24.0

7 of 92 new or added lines in 13 files covered. (7.61%)

1495 of 5160 relevant lines covered (28.97%)

1.5 hits per line

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

0.0
/admin/site-health/class-pro.php
1
<?php
2
/**
3
 * Gets the pro information.
4
 *
5
 * @since 1.9.0
6
 * @package Accessibility_Checker
7
 */
8

9
namespace EDAC\Admin\SiteHealth;
10

11
use EqualizeDigital\AccessibilityChecker\Fixes\FixesManager;
12

13
/**
14
 * Loads pro information into Site Health
15
 *
16
 * @since 1.9.0
17
 */
18
class Pro {
19

20
        /**
21
         * General constructor.
22
         */
23
        public function __construct() {
24
        }
×
25

26
        /**
27
         * Gets the site health section.
28
         *
29
         * @since 1.9.0
30
         * @return array
31
         */
32
        public function get() {
33

34
                // Get only the pro fixes.
35
                $fixes = array_filter(
×
36
                        FixesManager::get_instance()->get_fixes_settings(),
×
37
                        function ( $fix ) {
×
38
                                return $fix['is_pro'];
×
39
                        }
×
40
                );
×
41
                // remove the is_pro flag, this isn't needed in the output.
42
                foreach ( $fixes as $key => $fix ) {
×
43
                        unset( $fixes[ $key ]['is_pro'] );
×
44
                }
45

46
                return [
×
47
                        'label'  => __( 'Accessibility Checker &mdash; Pro', 'accessibility-checker' ),
×
48
                        'fields' => [
×
49
                                'version'                => [
×
NEW
50
                                        'label' => __( 'Version', 'accessibility-checker' ),
×
NEW
51
                                        'value' => defined( 'EDACP_VERSION' ) ? esc_html( EDACP_VERSION ) : __( 'Unset', 'accessibility-checker' ),
×
52
                                ],
×
53
                                'database_version'       => [
×
NEW
54
                                        'label' => __( 'Database Version', 'accessibility-checker' ),
×
NEW
55
                                        'value' => defined( 'EDACP_DB_VERSION' ) ? esc_html( EDACP_DB_VERSION ) : __( 'Unset', 'accessibility-checker' ),
×
56
                                ],
×
57
                                'license_status'         => [
×
NEW
58
                                        'label' => __( 'License Status', 'accessibility-checker' ),
×
59
                                        'value' => esc_html( get_option( 'edacp_license_status' ) ),
×
60
                                ],
×
61
                                'authorization_username' => [
×
NEW
62
                                        'label' => __( 'Authorization Username', 'accessibility-checker' ),
×
NEW
63
                                        'value' => esc_html( get_option( 'edacp_authorization_username' ) ? get_option( 'edacp_authorization_username' ) : __( 'Unset', 'accessibility-checker' ) ),
×
64
                                ],
×
65
                                'authorization_password' => [
×
NEW
66
                                        'label' => __( 'Authorization Password', 'accessibility-checker' ),
×
NEW
67
                                        'value' => esc_html( get_option( 'edacp_authorization_password' ) ? get_option( 'edacp_authorization_password' ) : __( 'Unset', 'accessibility-checker' ) ),
×
68
                                ],
×
69
                                'scan_id'                => [
×
NEW
70
                                        'label' => __( 'Scan ID', 'accessibility-checker' ),
×
71
                                        'value' => esc_html( get_transient( 'edacp_scan_id' ) ),
×
72
                                ],
×
73
                                'scan_total'             => [
×
NEW
74
                                        'label' => __( 'Scan Total', 'accessibility-checker' ),
×
75
                                        'value' => absint( get_transient( 'edacp_scan_total' ) ),
×
76
                                ],
×
77
                                'simplified_sum_heading' => [
×
NEW
78
                                        'label' => __( 'Simplified Sum Heading', 'accessibility-checker' ),
×
79
                                        'value' => esc_html( get_option( 'edacp_simplified_summary_heading' ) ),
×
80
                                ],
×
81
                                'ignore_permissions'     => [
×
NEW
82
                                        'label' => __( 'Ignore Permissions', 'accessibility-checker' ),
×
NEW
83
                                        'value' => esc_html( get_option( 'edacp_ignore_user_roles' ) ? implode( ', ', get_option( 'edacp_ignore_user_roles' ) ) : __( 'None', 'accessibility-checker' ) ),
×
84
                                ],
×
85
                                'ignores_db_table_count' => [
×
NEW
86
                                        'label' => __( 'Ignores DB Table Count', 'accessibility-checker' ),
×
87
                                        'value' => absint( edac_database_table_count( 'accessibility_checker_global_ignores' ) ),
×
88
                                ],
×
89
                                'fixes'                  => [
×
NEW
90
                                        'label' => __( 'Fixes', 'accessibility-checker' ),
×
91
                                        'value' => esc_html( wp_json_encode( $fixes ) ),
×
92
                                ],
×
93
                        ],
×
94
                ];
×
95
        }
96
}
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

© 2025 Coveralls, Inc