Skip to content

Commit

Permalink
These parameters aren't needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Sep 7, 2024
1 parent d904f0f commit 9fa684d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function init_hooks() {
add_action( 'init', __NAMESPACE__ . '\action_init' );
add_action( 'init', __NAMESPACE__ . '\action_handle_posts' );
add_action( 'admin_menu', __NAMESPACE__ . '\action_admin_menu' );
add_filter( "plugin_action_links_{$plugin_file}", __NAMESPACE__ . '\plugin_action_links', 10, 4 );
add_filter( "plugin_action_links_{$plugin_file}", __NAMESPACE__ . '\plugin_action_links' );
add_filter( "network_admin_plugin_action_links_{$plugin_file}", __NAMESPACE__ . '\network_plugin_action_links' );
add_filter( 'removable_query_args', __NAMESPACE__ . '\filter_removable_query_args' );
add_filter( 'pre_unschedule_event', __NAMESPACE__ . '\maybe_clear_doing_cron' );
Expand Down Expand Up @@ -1070,13 +1070,10 @@ function admin_help_tab() {
/**
* Adds items to the plugin's action links on the Plugins listing screen.
*
* @param array<string,string> $actions Array of action links.
* @param string $plugin_file Path to the plugin file relative to the plugins directory.
* @param mixed[] $plugin_data An array of plugin data.
* @param string $context The plugin context.
* @param array<string,string> $actions Array of action links.
* @return array<string,string> Array of action links.
*/
function plugin_action_links( $actions, $plugin_file, $plugin_data, $context ) {
function plugin_action_links( $actions ) {
$new = array(
'crontrol-events' => sprintf(
'<a href="%s">%s</a>',
Expand Down

0 comments on commit 9fa684d

Please sign in to comment.