Skip to content

Commit

Permalink
Remove unneeded arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Feb 14, 2024
1 parent 72dfca7 commit 147289d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wporg-gp-translation-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 147289d

Please sign in to comment.