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

equalizedigital / accessibility-checker / 18719438959

22 Oct 2025 02:23PM UTC coverage: 57.551%. First build
18719438959

Pull #1263

github

web-flow
Merge 9629edd96 into 0b5b9ed0a
Pull Request #1263: Release v1.34.0

3 of 236 new or added lines in 6 files covered. (1.27%)

4154 of 7218 relevant lines covered (57.55%)

3.45 hits per line

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

0.0
/uninstall.php
1
<?php
2
/**
3
 * Accessibility Checker plugin file.
4
 *
5
 * @package Accessibility_Checker
6
 */
7

8
// if uninstall.php is not called by WordPress, die.
9
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
×
10
        die;
×
11
}
12

13
// check if the delte data option is checked. If not, don't delete data.
14
$delete_data = get_option( 'edac_delete_data' );
×
15
if ( true === (bool) $delete_data ) {
×
16

17
        // drop database.
18
        global $wpdb;
×
19

20
        // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange -- Using direct query for table drop in uninstall script, caching not required for one time operation.
21
        $wpdb->query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . 'accessibility_checker' ) );
×
22

23
        // delete options.
24
        $options     = [
×
25
                'edac_db_version',
×
26
                'edac_activation_date',
×
27
                'edac_simplified_summary_position',
×
28
                'edac_post_types',
×
29
                'edac_add_footer_accessibility_statement',
×
30
                'edac_accessibility_policy_page',
×
31
                'edac_include_accessibility_statement_link',
×
32
                'edac_frontend_highlighter_position',
×
33
                'edac_delete_data',
×
34
                'edac_review_notice',
×
35
                'edac_authorization_password', // legacy option, remove in 1.29.0.
×
36
                'edac_authorization_username', // legacy option, remove in 1.29.0.
×
37
                'edac_gaad_notice_dismiss',
×
38
                'edac_black_friday_2023_notice_dismiss',
×
NEW
39
                'edac_black_friday_2024_notice_dismiss',
×
NEW
40
                'edac_black_friday_2025_notice_dismiss',
×
41
        ];
×
42
        $fix_options = [
×
43
                'edac_add_label_to_unlabeled_form_fields',
×
44
                'edac_add_label_to_unlabelled_form_fields',
×
45
                'edac_fix_add_file_size_and_type_to_linked_files',
×
46
                'edac_fix_add_label_to_unlabelled_form_fields',
×
47
                'edac_fix_add_lang_and_dir',
×
48
                'edac_fix_add_missing_or_empty_page_title',
×
49
                'edac_fix_add_read_more_title',
×
50
                'edac_fix_add_read_more_title_screen_reader_only',
×
51
                'edac_fix_add_skip_link',
×
52
                'edac_fix_add_skip_link_always_visible',
×
53
                'edac_fix_add_skip_link_nav_target_id',
×
54
                'edac_fix_add_skip_link_target',
×
55
                'edac_fix_add_skip_link_target_id',
×
56
                'edac_fix_block_pdf_uploads',
×
57
                'edac_fix_comment_label',
×
58
                'edac_fix_disable_skip_link_styles',
×
59
                'edac_fix_focus_outline',
×
60
                'edac_fix_focus_outline_color',
×
61
                'edac_fix_force_link_underline',
×
62
                'edac_fix_meta_viewport_scalable',
×
63
                'edac_fix_prevent_links_opening_in_new_windows',
×
64
                'edac_fix_prevent_links_opening_new_windows',
×
65
                'edac_fix_remove_tabindex',
×
66
                'edac_fix_remove_title_if_preferred_accessible_name',
×
67
                'edac_fix_search_label',
×
68
                'edac_fix_new_window_warning',
×
69
        ];
×
70

71
        $options_to_clear = array_merge( $options, $fix_options );
×
72

73
        foreach ( $options_to_clear as $option ) {
×
74
                delete_option( $option );
×
75
                delete_site_option( $option );
×
76
        }
77
}
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