Fix undefined array key notice
This commit is contained in:
@@ -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!')
|
||||
|
||||
Reference in New Issue
Block a user