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

equalizedigital / accessibility-checker / 14783707399

01 May 2025 09:17PM UTC coverage: 29.045% (+3.4%) from 25.605%
14783707399

push

github

web-flow
Merge pull request #930 from equalizedigital/steve/pro-60-remove-legacy-php-scan-code

Remove Legacy PHP Scan Code

1 of 81 new or added lines in 6 files covered. (1.23%)

37 existing lines in 4 files now uncovered.

1542 of 5309 relevant lines covered (29.05%)

1.53 hits per line

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

31.58
/includes/deprecated/deprecated.php
1
<?php
2
/**
3
 * Functions that have been deprecated and should not be used.
4
 * They are still kept here for backwards-compatibility.
5
 *
6
 * @package Accessibility_Checker
7
 */
8

9
use EDAC\Admin\Insert_Rule_Data;
10
use EDAC\Admin\Purge_Post_Data;
11
use EDAC\Admin\Post_Save;
12

13
/**
14
 * Alias of the is_plugin_active() function.
15
 *
16
 * @deprecated 1.6.11
17
 *
18
 * @param string $plugin_slug The plugin slug.
19
 * @return bool
20
 */
21
function edac_check_plugin_active( $plugin_slug ) {
22
        _deprecated_function( __FUNCTION__, '1.6.11', 'is_plugin_active()' );
×
23
        return is_plugin_active( $plugin_slug );
×
24
}
25

26
/**
27
 * Summary Data
28
 *
29
 * @deprecated 1.9.0
30
 *
31
 * @param int $post_id ID of the post.
32
 * @return array
33
 */
34
function edac_summary( $post_id ) {
35
        _deprecated_function( __FUNCTION__, '1.9.0', 'EDAC\Inc\Summary_Generator' );
×
36

37
        return ( new EDAC\Inc\Summary_Generator( $post_id ) )->generate_summary();
×
38
}
39

40
/**
41
 * Purge deleted posts
42
 *
43
 * @deprecated 2.0.0
44
 *
45
 * @param int $post_id ID of the post.
46
 * @return void
47
 */
48
function edac_delete_post( $post_id ) {
49
        _deprecated_function( __FUNCTION__, '1.10.0', 'EDAC\Admin\Purge_Post_Data::delete_post' );
2✔
50
        Purge_Post_Data::delete_post( $post_id );
2✔
51
}
52

53
/**
54
 * Delete post meta
55
 *
56
 * @deprecated 1.10.0
57
 *
58
 * @param int $post_id ID of the post.
59
 * @return void
60
 */
61
function edac_delete_post_meta( $post_id ) {
62
        _deprecated_function( __FUNCTION__, '1.10.0', 'EDAC\Admin\Purge_Post_Data::delete_post_meta' );
2✔
63
        Purge_Post_Data::delete_post_meta( $post_id );
2✔
64
}
65

66
/**
67
 * Purge issues by post type
68
 *
69
 * @deprecated 1.10.0
70
 *
71
 * @param string $post_type Post Type.
72
 * @return void
73
 */
74
function edac_delete_cpt_posts( $post_type ) {
75
        _deprecated_function( __FUNCTION__, '1.10.0', 'EDAC\Admin\Purge_Post_Data::delete_cpt_posts' );
2✔
76
        Purge_Post_Data::delete_cpt_posts( $post_type );
2✔
77
}
78

79
/**
80
 * Register custom meta boxes
81
 *
82
 * @deprecated 1.10.0
83
 *
84
 * @return void
85
 */
86
function edac_register_meta_boxes() {
87
        _deprecated_function( __FUNCTION__, '1.10.0', 'EDAC\Admin\Meta_Boxes::register_meta_boxes' );
×
88
        ( new EDAC\Admin\Meta_Boxes() )->register_meta_boxes();
×
89
}
90

91
/**
92
 * Render the custom meta box html
93
 *
94
 * @deprecated 1.10.0
95
 *
96
 * @return void
97
 */
98
function edac_custom_meta_box_cb() {
99
        _deprecated_function( __FUNCTION__, '1.10.0', 'EDAC\Admin\Meta_Boxes::render' );
×
100
        ( new EDAC\Admin\Meta_Boxes() )->render();
×
101
}
102

103
/**
104
 * Insert rule date into database
105
 *
106
 * @deprecated 1.10.0
107
 *
108
 * @param object $post     The post object.
109
 * @param string $rule     The rule.
110
 * @param string $ruletype The rule type.
111
 * @param string $rule_obj The object.
112
 * @return void|int
113
 */
114
function edac_insert_rule_data( $post, $rule, $ruletype, $rule_obj ) {
115
        _deprecated_function( __FUNCTION__, '1.10.0', 'EDAC\Admin\Insert_Rule_Data' );
×
116
        return ( new Insert_Rule_Data() )->insert( $post, $rule, $ruletype, $rule_obj );
×
117
}
118

119
/**
120
 * Post save handler
121
 *
122
 * @deprecated 1.23.0
123
 *
124
 * @param int    $post_ID The ID of the post being saved.
125
 * @param object $post    The post object being saved.
126
 * @param bool   $update  Whether this is an existing post being updated.
127
 * @return int   The post ID.
128
 */
129
function edac_save_post( $post_ID, $post, $update ) {
NEW
130
        _deprecated_function( __FUNCTION__, '1.23.0', 'EDAC\Admin\Post_Save::save_post' );
×
NEW
131
        Post_Save::delete_issue_data_on_post_trashing( $post_ID, $post, $update );
×
NEW
132
        return $post_ID;
×
133
}
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