Make WordPress Core

Ticket #25141: 25141.diff

File 25141.diff, 806 bytes (added by kovshenin, 11 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    54665466
    54675467                $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_author_email', 'comment_content', 'comment_type');
    54685468
     5469                // Turn off the comment flood filter for pingbacks.
     5470                add_filter( 'comment_flood_filter', '__return_false', 11 );
    54695471                $comment_ID = wp_new_comment($commentdata);
     5472                remove_filter( 'comment_flood_filter', '__return_false', 11 );
     5473
    54705474                do_action('pingback_post', $comment_ID);
    54715475
    54725476                return sprintf(__('Pingback from %1$s to %2$s registered. Keep the web talking! :-)'), $pagelinkedfrom, $pagelinkedto);