Skip to content

Commit

Permalink
Revert "Return void from Settings::add_admin_menu"
Browse files Browse the repository at this point in the history
This reverts commit 5254e62.
  • Loading branch information
mehigh committed Oct 30, 2023
1 parent ea0b0a7 commit b1aa1bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/src/class-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b1aa1bf

Please sign in to comment.