From b1aa1bfc5e83ccd919c5c900ee4259618db7106f Mon Sep 17 00:00:00 2001 From: Mike Crantea Date: Mon, 30 Oct 2023 16:40:26 +0000 Subject: [PATCH] Revert "Return void from Settings::add_admin_menu" This reverts commit 5254e628e308f6a85fd66cd0fb8ecc5e0a2d27a6. --- php/src/class-settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/src/class-settings.php b/php/src/class-settings.php index fb18e48..838c9ad 100644 --- a/php/src/class-settings.php +++ b/php/src/class-settings.php @@ -82,10 +82,10 @@ protected function register_hooks() { /** * Add tracker as a settings menu item. * - * @return void + * @return string|false The option page's hook_suffix, or false if the user does not have the capability required. */ public function add_admin_menu() { - add_options_page( + return add_options_page( __( 'Site Performance Tracker', 'site-performance-tracker' ), __( 'Site Performance Tracker', 'site-performance-tracker' ), 'manage_options',