Fix undefined array key notice

This commit is contained in:
Cooper Dalrymple
2026-01-23 09:34:32 -06:00
parent 7b4aa346c6
commit d1ae5f021a

View File

@@ -53,7 +53,7 @@ final class Refresh {
}
public function handle_notices():void {
if (!current_user_can(self::CAPABILITY) || $_GET['page'] != Plugin::get_id() || !isset($_GET[self::ACTION])) return;
if (!current_user_can(self::CAPABILITY) || !isset($_GET['page']) || $_GET['page'] != Plugin::get_id() || !isset($_GET[self::ACTION])) return;
printf(
'<div class="notice notice-success is-dismissable"><p>%s</p></div>',
Plugin::esc_html__('All sort relationships successfully refreshed!')