Ticket #5224: 5224.patch
File 5224.patch, 1.0 KB (added by , 17 years ago) |
---|
-
wp-includes/comment.php
752 752 } 753 753 754 754 755 // Don't self-ping by Michael D. Adams 756 function no_self_ping( &$links ) { 757 $home = get_option( 'home' ); 758 foreach ( $links as $l => $link ) 759 if ( 0 === strpos( $link, $home ) ) 760 unset($links[$l]); 761 } 762 763 755 764 function privacy_ping_filter($sites) { 756 765 if ( '0' != get_option('blog_public') ) 757 766 return $sites; -
wp-includes/default-filters.php
133 133 add_filter('comment_flood_filter', 'wp_throttle_comment_flood', 10, 3); 134 134 add_filter('pre_comment_content', 'wp_rel_nofollow', 15); 135 135 add_filter('comment_email', 'antispambot'); 136 add_filter('pre_ping', 'no_self_ping'); 136 137 137 138 // Actions 138 139 add_action('wp_head', 'rsd_link');