WordPress.org

Make WordPress Core

Changeset 46432


Ignore:
Timestamp:
10/08/2019 03:18:02 AM (5 weeks ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r46349 r46432  
    332332
    333333// 2 Actions 2 Furious
    334 add_action( 'do_feed_rdf', 'do_feed_rdf', 10, 1 );
    335 add_action( 'do_feed_rss', 'do_feed_rss', 10, 1 );
     334add_action( 'do_feed_rdf', 'do_feed_rdf', 10, 0 );
     335add_action( 'do_feed_rss', 'do_feed_rss', 10, 0 );
    336336add_action( 'do_feed_rss2', 'do_feed_rss2', 10, 1 );
    337337add_action( 'do_feed_atom', 'do_feed_atom', 10, 1 );
    338 add_action( 'do_pings', 'do_all_pings', 10, 1 );
     338add_action( 'do_pings', 'do_all_pings', 10, 0 );
    339339add_action( 'do_robots', 'do_robots' );
    340340add_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 3 );
Note: See TracChangeset for help on using the changeset viewer.