Changes from branches/2.7/wp-includes/comment.php at r10454 to trunk/wp-includes/comment.php at r10150
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r10454 r10150 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("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", apply_filters('comment_text', $comment), $out) >= get_option('comment_max_links') ) 49 49 return false; // Check # of external links 50 50 … … 593 593 594 594 // Count comments older than this one 595 $oldercoms = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_parent = 0 AND comment_ approved = '1' AND comment_date_gmt < '%s'" . $comtypewhere, $comment->comment_post_ID, $comment->comment_date_gmt ) );595 $oldercoms = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_parent = 0 AND comment_date_gmt < '%s'" . $comtypewhere, $comment->comment_post_ID, $comment->comment_date_gmt ) ); 596 596 597 597 // No older comments? Then it's page #1. … … 1581 1581 */ 1582 1582 function _close_comments_for_old_posts( $posts ) { 1583 if ( empty($posts) || !is_sing ular() || !get_option('close_comments_for_old_posts') )1583 if ( empty($posts) || !is_single() || !get_option('close_comments_for_old_posts') ) 1584 1584 return $posts; 1585 1585
Note: See TracChangeset
for help on using the changeset viewer.