Changeset 2556

Show
Ignore:
Timestamp:
04/20/05 03:37:23 (3 years ago)
Author:
matt
Message:

Line ending fixes and commenting cleanups from Scott Reilly

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved

trunk/wp-comments-post.php

33 33  
34 34 if ( get_settings('require_name_email') && !$user_ID ) { 
35       if ('' == $comment_author_email || '' == $comment_author
  35     if ( 7 > strlen($comment_author_email) || '' == $comment_author
36 36         die( __('Error: please fill the required fields (name, email).') ); 
37 37     elseif ( !is_email($comment_author_email)) 

trunk/wp-includes/functions-post.php

481 481     $now_gmt = current_time('mysql', 1); 
482 482  
  483     if ( $user_id ) { 
  484         $userdata = get_userdata($user_id); 
  485         $post_author = $wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = '$comment_post_ID' LIMIT 1"); 
  486     } 
  487  
483 488     // Simple flood-protection 
484 489     if ( $lasttime = $wpdb->get_var("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_author_IP = '$user_ip' OR comment_author_email = '$email' ORDER BY comment_date DESC LIMIT 1") ) { 
 
497 502     if ( wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_agent) ) 
498 503         $approved = 'spam'; 
499        
  504     if ( $userdata && ( $user_id == $post_author || $userdata['user_level'] >= 9 ) ) 
  505         $approved = 1; 
  506  
500 507     $approved = apply_filters('pre_comment_approved', $approved); 
501 508  

trunk/wp-includes/pluggable-functions.php

Property svn:eol-style set to native

trunk/wp-trackback.php

28 28 $request_array = 'HTTP_POST_VARS'; 
29 29  
30   if ( empty($_GET['tb_id']) ) { 
  30 if ( !$_GET['tb_id'] ) { 
31 31     $tb_id = explode('/', $_SERVER['REQUEST_URI']); 
32       $tb_id = intval($tb_id[count($tb_id)-1]); 
33   } else { 
34       $tb_id = intval($_GET['tb_id']); 
  32     $tb_id = intval( $tb_id[ count($tb_id) - 1 ] ); 
35 33 } 
36 34  
 
55 53     $tb_id = $posts[0]->ID; 
56 54  
57   if ( !$tb_id
  55 if ( !intval( $tb_id )
58 56     trackback_response(1, 'I really need an ID for this to work.'); 
59 57  
 
69 67     $pingstatus = $wpdb->get_var("SELECT ping_status FROM $wpdb->posts WHERE ID = $tb_id"); 
70 68  
71       if ('open' != $pingstatus
  69     if ( 'open' != $pingstatus
72 70         trackback_response(1, 'Sorry, trackbacks are closed for this item.'); 
73 71  


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser