Changeset 13150
- Timestamp:
- 02/14/2010 10:59:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r12733 r13150 46 46 return false; // If moderation is set to manual 47 47 48 if ( get_option( 'comment_max_links') && preg_match_all("/<[Aa][^>]*[Hh][Rr][Ee][Ff]=['\"]([^\"'>]+)[^>]*>/", apply_filters('comment_text',$comment), $out) >= get_option('comment_max_links') )48 if ( get_option( 'comment_max_links' ) && preg_match_all( '/<a [^>]*href/i', apply_filters( 'comment_text', $comment ), $out) >= get_option( 'comment_max_links' ) ) 49 49 return false; // Check # of external links 50 50 … … 1268 1268 $post = &get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment 1269 1269 1270 if ( get_option('comments_notify') && $commentdata['comment_approved'] && $post->post_author != $commentdata['user_id'] )1270 if ( isset( $commentdata['user_id'] ) && get_option('comments_notify') && $commentdata['comment_approved'] && $post->post_author != $commentdata['user_id'] ) 1271 1271 wp_notify_postauthor($comment_ID, $commentdata['comment_type']); 1272 1272 }
Note: See TracChangeset
for help on using the changeset viewer.