File tree 3 files changed +3
-15
lines changed
3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -78,18 +78,6 @@ parameters:
78
78
count : 1
79
79
path : ../includes/acf-input-functions.php
80
80
81
- -
82
- message : ' #^Action callback returns string but should not return anything\.$#'
83
- identifier : return.void
84
- count : 2
85
- path : ../includes/admin/admin-upgrade.php
86
-
87
- -
88
- message : ' #^Action callback returns string but should not return anything\.$#'
89
- identifier : return.void
90
- count : 1
91
- path : ../includes/admin/admin.php
92
-
93
81
-
94
82
message : ' #^Access to an undefined property ACF_Admin_Field_Groups\:\:\$not_found_label\.$#'
95
83
identifier : property.notFound
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ public function check_for_network_upgrades() {
174
174
*/
175
175
public function admin_load () {
176
176
177
- add_action ( 'admin_body_class ' , array ( $ this , 'admin_body_class ' ) );
177
+ add_filter ( 'admin_body_class ' , array ( $ this , 'admin_body_class ' ) );
178
178
179
179
// remove prompt
180
180
remove_action ( 'admin_notices ' , array ( $ this , 'admin_notices ' ) );
@@ -195,7 +195,7 @@ public function admin_load() {
195
195
*/
196
196
public function network_admin_load () {
197
197
198
- add_action ( 'admin_body_class ' , array ( $ this , 'admin_body_class ' ) );
198
+ add_filter ( 'admin_body_class ' , array ( $ this , 'admin_body_class ' ) );
199
199
200
200
// remove prompt
201
201
remove_action ( 'network_admin_notices ' , array ( $ this , 'network_admin_notices ' ) );
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class ACF_Admin {
17
17
public function __construct () {
18
18
add_action ( 'admin_menu ' , array ( $ this , 'admin_menu ' ) );
19
19
add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'admin_enqueue_scripts ' ) );
20
- add_action ( 'admin_body_class ' , array ( $ this , 'admin_body_class ' ) );
20
+ add_filter ( 'admin_body_class ' , array ( $ this , 'admin_body_class ' ) );
21
21
add_action ( 'current_screen ' , array ( $ this , 'current_screen ' ) );
22
22
add_action ( 'admin_notices ' , array ( $ this , 'maybe_show_escaped_html_notice ' ) );
23
23
add_action ( 'admin_init ' , array ( $ this , 'dismiss_escaped_html_notice ' ) );
You can’t perform that action at this time.
0 commit comments