diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
index 71471eed12..394da60857 100644
|
a
|
b
|
function discover_pingback_server_uri( $url, $deprecated = '' ) { |
| 2800 | 2800 | * Perform all pingbacks, enclosures, trackbacks, and send to pingback services. |
| 2801 | 2801 | * |
| 2802 | 2802 | * @since 2.1.0 |
| | 2803 | * @since 5.6.0 Introduced `perform_pings` action hook for individual services. |
| 2803 | 2804 | * |
| 2804 | | * @global wpdb $wpdb WordPress database abstraction object. |
| 2805 | 2805 | */ |
| 2806 | 2806 | function do_all_pings() { |
| 2807 | | global $wpdb; |
| | 2807 | /** |
| | 2808 | * Fires immediately after the `do_pings` event to hook services individually. |
| | 2809 | * |
| | 2810 | * @since 5.6.0 |
| | 2811 | */ |
| | 2812 | do_action( 'perform_pings' ); |
| | 2813 | } |
| 2808 | 2814 | |
| 2809 | | // Do pingbacks. |
| | 2815 | |
| | 2816 | /** |
| | 2817 | * Perform all pingbacks. |
| | 2818 | * |
| | 2819 | * @since 5.6.0 |
| | 2820 | * |
| | 2821 | */ |
| | 2822 | function wp_perform_pingbacks() { |
| 2810 | 2823 | $pings = get_posts( |
| 2811 | 2824 | array( |
| 2812 | 2825 | 'post_type' => get_post_types(), |
| … |
… |
function do_all_pings() { |
| 2821 | 2834 | delete_post_meta( $ping, '_pingme' ); |
| 2822 | 2835 | pingback( null, $ping ); |
| 2823 | 2836 | } |
| | 2837 | } |
| 2824 | 2838 | |
| 2825 | | // Do enclosures. |
| | 2839 | |
| | 2840 | /** |
| | 2841 | * Perform all enclosures. |
| | 2842 | * |
| | 2843 | * @since 5.6.0 |
| | 2844 | * |
| | 2845 | */ |
| | 2846 | function wp_perform_enclosures() { |
| 2826 | 2847 | $enclosures = get_posts( |
| 2827 | 2848 | array( |
| 2828 | 2849 | 'post_type' => get_post_types(), |
| … |
… |
function do_all_pings() { |
| 2837 | 2858 | delete_post_meta( $enclosure, '_encloseme' ); |
| 2838 | 2859 | do_enclose( null, $enclosure ); |
| 2839 | 2860 | } |
| | 2861 | } |
| 2840 | 2862 | |
| 2841 | | // Do trackbacks. |
| | 2863 | |
| | 2864 | /** |
| | 2865 | * Perform all trackbacks. |
| | 2866 | * |
| | 2867 | * @since 5.6.0 |
| | 2868 | * |
| | 2869 | */ |
| | 2870 | function wp_perform_trackbacks() { |
| 2842 | 2871 | $trackbacks = get_posts( |
| 2843 | 2872 | array( |
| 2844 | 2873 | 'post_type' => get_post_types(), |
| … |
… |
function do_all_pings() { |
| 2853 | 2882 | delete_post_meta( $trackback, '_trackbackme' ); |
| 2854 | 2883 | do_trackbacks( $trackback ); |
| 2855 | 2884 | } |
| 2856 | | |
| 2857 | | // Do Update Services/Generic Pings. |
| 2858 | | generic_ping(); |
| 2859 | 2885 | } |
| 2860 | 2886 | |
| 2861 | 2887 | /** |
diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php
index dbc4fefb09..849cd48c16 100644
|
a
|
b
|
add_action( 'do_feed_rss', 'do_feed_rss', 10, 0 ); |
| 342 | 342 | add_action( 'do_feed_rss2', 'do_feed_rss2', 10, 1 ); |
| 343 | 343 | add_action( 'do_feed_atom', 'do_feed_atom', 10, 1 ); |
| 344 | 344 | add_action( 'do_pings', 'do_all_pings', 10, 0 ); |
| | 345 | add_action( 'perform_pings', 'wp_perform_pingbacks', 10, 0 ); |
| | 346 | add_action( 'perform_pings', 'wp_perform_enclosures', 10, 0 ); |
| | 347 | add_action( 'perform_pings', 'wp_perform_trackbacks', 10, 0 ); |
| | 348 | add_action( 'perform_pings', 'generic_ping', 10, 0 ); |
| 345 | 349 | add_action( 'do_robots', 'do_robots' ); |
| 346 | 350 | add_action( 'do_favicon', 'do_favicon' ); |
| 347 | 351 | add_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 3 ); |