/** * Prints HTML for the "review alert" page. * * @global $_GET * * @uses current_user_can() * @uses get_current_user_id() * @uses WP_Buoy_Alert::can_respond() * * @return void */ public static function renderReviewAlertPage() { if (empty($_GET[self::$prefix . '_hash'])) { return; } $alert = new WP_Buoy_Alert($_GET[self::$prefix . '_hash']); if (!current_user_can('read') || !$alert->can_respond(get_current_user_id())) { esc_html_e('You do not have sufficient permissions to access this page.', 'buoy'); return; } require_once 'pages/review-alert.php'; }