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

equalizedigital / accessibility-checker / 14936165494

09 May 2025 07:21PM UTC coverage: 28.967%. First build
14936165494

Pull #966

github

web-flow
Merge ee6879efb into f6dc26e5a
Pull Request #966: Release v1.23.0

55 of 145 new or added lines in 9 files covered. (37.93%)

1495 of 5161 relevant lines covered (28.97%)

1.5 hits per line

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

27.27
/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
}
134

135
if ( ! function_exists( 'str_get_html' ) ) {
136
        /**
137
         * Fallback function for Simple HTML DOM's str_get_html
138
         * Returns a wrapped DOMDocument instance for backwards compatibility
139
         *
140
         * @deprecated 1.23.0
141
         * @param mixed ...$args Original parameters passed to str_get_html().
142
         * @return false
143
         */
144
        function str_get_html( ...$args ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found, VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Required for signature compatibility
NEW
145
                _deprecated_function( __FUNCTION__, '1.23.0', 'DOMDocument' );
×
NEW
146
                return false;
×
147
        }
148
}
149

150
/**
151
 * Validate post content
152
 *
153
 * @deprecated 1.23.0 This functionality has been removed without replacement
154
 *
155
 * @param int    $post_ID The ID of the post.
156
 * @param object $post    The post object.
157
 * @param string $action  The action being performed.
158
 * @return void
159
 */
160
function edac_validate( $post_ID, $post, $action ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found, Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed, VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Parameters kept for backwards compatibility
NEW
161
        _deprecated_function( __FUNCTION__, '1.23.0', 'This functionality has been removed' );
×
162
}
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