WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/19/2020 09:14:06 PM (12 months ago)
Author:
SergeyBiryukov
Message:

Pings/Trackbacks: Split do_all_pings() into several functions:

  • do_all_pingbacks()
  • do_all_enclosures()
  • do_all_trackbacks()

This allows for the specific removal/replacement of one of more services.

Props dshanske, garrett-eclipse, Mista-Flo, azaozz, hellofromTonya.
Fixes #36576.

File:
1 edited

Legend:

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

    r49109 r49211  
    343343add_action( 'do_feed_atom', 'do_feed_atom', 10, 1 );
    344344add_action( 'do_pings', 'do_all_pings', 10, 0 );
     345add_action( 'do_all_pings', 'do_all_pingbacks', 10, 0 );
     346add_action( 'do_all_pings', 'do_all_enclosures', 10, 0 );
     347add_action( 'do_all_pings', 'do_all_trackbacks', 10, 0 );
     348add_action( 'do_all_pings', 'generic_ping', 10, 0 );
    345349add_action( 'do_robots', 'do_robots' );
    346350add_action( 'do_favicon', 'do_favicon' );
Note: See TracChangeset for help on using the changeset viewer.