WordPress.org

Make WordPress Core

Ticket #6698: 6698.3.diff

File 6698.3.diff, 1.6 KB (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/default-filters.php

     
    186186add_action('do_feed_rss2', 'do_feed_rss2', 10, 1); 
    187187add_action('do_feed_atom', 'do_feed_atom', 10, 1); 
    188188add_action('do_pings', 'do_all_pings', 10, 1); 
     189add_action('do_generic_ping', 'generic_ping', 10, 1); 
    189190add_action('do_robots', 'do_robots'); 
    190191add_action('sanitize_comment_cookies', 'sanitize_comment_cookies'); 
    191192add_action('admin_print_scripts', 'print_head_scripts', 20); 
  • wp-includes/post.php

     
    32443244                if ( '' == get_the_guid($post->ID) ) 
    32453245                        $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post->ID ) ), array( 'ID' => $post->ID ) ); 
    32463246                do_action('private_to_published', $post->ID);  // Deprecated, use private_to_publish 
     3247                // do generic pings once per hour at most 
     3248                if ( !wp_next_scheduled('do_generic_ping') ) 
     3249                        wp_schedule_single_event(time() + 3600, 'do_generic_ping'); 
    32473250        } 
    32483251 
    32493252        // Always clears the hook in case the post status bounced from future to draft. 
  • wp-includes/comment.php

     
    13241324        if ( is_array($trackbacks) ) 
    13251325                foreach ( $trackbacks as $trackback ) 
    13261326                        do_trackbacks($trackback); 
    1327  
    1328         //Do Update Services/Generic Pings 
    1329         generic_ping(); 
    13301327} 
    13311328 
    13321329/**