From 4e716dbce1fbafc8764868698f48695866b1f87f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 8 Oct 2019 03:18:02 +0000 Subject: [PATCH] Coding Standards: Correct the number of accepted arguments in `add_action()` calls in `wp-includes/default-filters.php` for functions that don't accept any arguments. Props itowhid06, johnbillion, jrf. Fixes #48123. git-svn-id: https://develop.svn.wordpress.org/trunk@46432 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/default-filters.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php index 025cabda19..26cdfeba20 100644 --- a/src/wp-includes/default-filters.php +++ b/src/wp-includes/default-filters.php @@ -331,11 +331,11 @@ if ( ! defined( 'DOING_CRON' ) ) { } // 2 Actions 2 Furious -add_action( 'do_feed_rdf', 'do_feed_rdf', 10, 1 ); -add_action( 'do_feed_rss', 'do_feed_rss', 10, 1 ); +add_action( 'do_feed_rdf', 'do_feed_rdf', 10, 0 ); +add_action( 'do_feed_rss', 'do_feed_rss', 10, 0 ); add_action( 'do_feed_rss2', 'do_feed_rss2', 10, 1 ); add_action( 'do_feed_atom', 'do_feed_atom', 10, 1 ); -add_action( 'do_pings', 'do_all_pings', 10, 1 ); +add_action( 'do_pings', 'do_all_pings', 10, 0 ); add_action( 'do_robots', 'do_robots' ); add_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 3 ); add_action( 'sanitize_comment_cookies', 'sanitize_comment_cookies' );