Skip to content

Commit 057cad3

Browse files
authored
Update src/Admin/AdminNotices.php
1 parent 9842a97 commit 057cad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Admin/AdminNotices.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ protected function is_plugin_scoped_page(): bool {
323323

324324
$current_page_id = $screen->id;
325325

326-
$is_plugin_scoped_page = in_array( $current_page_id, $allowed_pages, true );
326+
$is_allowed_admin_page = in_array( $current_page_id, $allowed_pages, true );
327327

328328
/**
329329
* Filter to determine if the current admin page is within the scope of the plugin's own pages.
@@ -335,7 +335,7 @@ protected function is_plugin_scoped_page(): bool {
335335
* @param string $current_page_id The ID of the current admin page.
336336
* @param array<string> $allowed_pages The list of allowed pages.
337337
*/
338-
return apply_filters( 'graphql_admin_notices_is_plugin_scoped_page', $is_plugin_scoped_page, $current_page_id, $allowed_pages );
338+
return apply_filters( 'graphql_admin_notices_is_allowed_admin_page', $is_allowed_admin_page, $current_page_id, $allowed_pages );
339339
}
340340

341341
/**

0 commit comments

Comments
 (0)