From 147289d5559406127243b76947df118296b0590b Mon Sep 17 00:00:00 2001 From: Paulo Pinto Date: Wed, 14 Feb 2024 15:46:05 +0000 Subject: [PATCH] Remove unneeded arguments --- wporg-gp-translation-events.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wporg-gp-translation-events.php b/wporg-gp-translation-events.php index 2f45bfed..a7999c05 100644 --- a/wporg-gp-translation-events.php +++ b/wporg-gp-translation-events.php @@ -300,10 +300,10 @@ function gp_event_nav_menu_items( array $items ): array { 'gp_init', function () { require_once __DIR__ . '/includes/class-wporg-gp-translation-events-route.php'; - GP::$router->add( '/events?', array( 'WPORG_GP_Translation_Events_Route', 'events_list' ), 'get' ); - GP::$router->add( '/events/new', array( 'WPORG_GP_Translation_Events_Route', 'events_create' ), 'get' ); - GP::$router->add( '/events/edit/(\d+)', array( 'WPORG_GP_Translation_Events_Route', 'events_edit' ), 'get' ); - GP::$router->add( '/events/([a-z0-9_-]+)', array( 'WPORG_GP_Translation_Events_Route', 'events_details' ), 'get' ); + GP::$router->add( '/events?', array( 'WPORG_GP_Translation_Events_Route', 'events_list' ) ); + GP::$router->add( '/events/new', array( 'WPORG_GP_Translation_Events_Route', 'events_create' ) ); + GP::$router->add( '/events/edit/(\d+)', array( 'WPORG_GP_Translation_Events_Route', 'events_edit' ) ); + GP::$router->add( '/events/([a-z0-9_-]+)', array( 'WPORG_GP_Translation_Events_Route', 'events_details' ) ); require_once __DIR__ . '/includes/class-wporg-gp-translation-events-event.php'; require_once __DIR__ . '/includes/class-wporg-gp-translation-events-active-events-cache.php';