Changeset 49211
- Timestamp:
- 10/19/2020 09:14:06 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r49193 r49211 2801 2801 * 2802 2802 * @since 2.1.0 2803 * 2804 * @global wpdb $wpdb WordPress database abstraction object. 2803 * @since 5.6.0 Introduced `do_all_pings` action hook for individual services. 2805 2804 */ 2806 2805 function do_all_pings() { 2807 global $wpdb; 2808 2809 // Do pingbacks. 2806 /** 2807 * Fires immediately after the `do_pings` event to hook services individually. 2808 * 2809 * @since 5.6.0 2810 */ 2811 do_action( 'do_all_pings' ); 2812 } 2813 2814 /** 2815 * Perform all pingbacks. 2816 * 2817 * @since 5.6.0 2818 */ 2819 function do_all_pingbacks() { 2810 2820 $pings = get_posts( 2811 2821 array( … … 2822 2832 pingback( null, $ping ); 2823 2833 } 2824 2825 // Do enclosures. 2834 } 2835 2836 /** 2837 * Perform all enclosures. 2838 * 2839 * @since 5.6.0 2840 */ 2841 function do_all_enclosures() { 2826 2842 $enclosures = get_posts( 2827 2843 array( … … 2838 2854 do_enclose( null, $enclosure ); 2839 2855 } 2840 2841 // Do trackbacks. 2856 } 2857 2858 /** 2859 * Perform all trackbacks. 2860 * 2861 * @since 5.6.0 2862 */ 2863 function do_all_trackbacks() { 2842 2864 $trackbacks = get_posts( 2843 2865 array( … … 2854 2876 do_trackbacks( $trackback ); 2855 2877 } 2856 2857 // Do Update Services/Generic Pings.2858 generic_ping();2859 2878 } 2860 2879 -
trunk/src/wp-includes/default-filters.php
r49109 r49211 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( 'do_all_pings', 'do_all_pingbacks', 10, 0 ); 346 add_action( 'do_all_pings', 'do_all_enclosures', 10, 0 ); 347 add_action( 'do_all_pings', 'do_all_trackbacks', 10, 0 ); 348 add_action( 'do_all_pings', 'generic_ping', 10, 0 ); 345 349 add_action( 'do_robots', 'do_robots' ); 346 350 add_action( 'do_favicon', 'do_favicon' );
Note: See TracChangeset
for help on using the changeset viewer.