Skip to content

Commit

Permalink
Merge pull request #103 from szepeviktor/patch-2
Browse files Browse the repository at this point in the history
Return void from Settings::add_admin_menu
  • Loading branch information
mehigh authored Oct 30, 2023
2 parents 8a5bf13 + e713a1f commit ea0b0a7
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 string|false The option page's hook_suffix, or false if the user does not have the capability required.
* @return void
*/
public function add_admin_menu() {
return add_options_page(
add_options_page(
__( 'Site Performance Tracker', 'site-performance-tracker' ),
__( 'Site Performance Tracker', 'site-performance-tracker' ),
'manage_options',
Expand Down

0 comments on commit ea0b0a7

Please sign in to comment.