Skip to content

Commit c28f7ce

Browse files
committed
See #63
1 parent dd118ee commit c28f7ce

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

bin/baseline.neon

-12
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,6 @@ parameters:
7878
count: 1
7979
path: ../includes/acf-input-functions.php
8080

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-
9381
-
9482
message: '#^Access to an undefined property ACF_Admin_Field_Groups\:\:\$not_found_label\.$#'
9583
identifier: property.notFound

includes/admin/admin-upgrade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function check_for_network_upgrades() {
174174
*/
175175
public function admin_load() {
176176

177-
add_action( 'admin_body_class', array( $this, 'admin_body_class' ) );
177+
add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
178178

179179
// remove prompt
180180
remove_action( 'admin_notices', array( $this, 'admin_notices' ) );
@@ -195,7 +195,7 @@ public function admin_load() {
195195
*/
196196
public function network_admin_load() {
197197

198-
add_action( 'admin_body_class', array( $this, 'admin_body_class' ) );
198+
add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
199199

200200
// remove prompt
201201
remove_action( 'network_admin_notices', array( $this, 'network_admin_notices' ) );

includes/admin/admin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ACF_Admin {
1717
public function __construct() {
1818
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
1919
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' ) );
2121
add_action( 'current_screen', array( $this, 'current_screen' ) );
2222
add_action( 'admin_notices', array( $this, 'maybe_show_escaped_html_notice' ) );
2323
add_action( 'admin_init', array( $this, 'dismiss_escaped_html_notice' ) );

0 commit comments

Comments
 (0)