Changeset 4144 for trunk/wp-includes/comment.php
- Timestamp:
- 08/30/2006 09:46:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r4133 r4144 4 4 global $wpdb; 5 5 6 if (1 == get_ settings('comment_moderation')) return false; // If moderation is set to manual7 8 if ( (count(explode('http:', $comment)) - 1) >= get_ settings('comment_max_links') )6 if (1 == get_option('comment_moderation')) return false; // If moderation is set to manual 7 8 if ( (count(explode('http:', $comment)) - 1) >= get_option('comment_max_links') ) 9 9 return false; // Check # of external links 10 10 11 $mod_keys = trim( get_ settings('moderation_keys') );11 $mod_keys = trim( get_option('moderation_keys') ); 12 12 if ( !empty($mod_keys) ) { 13 13 $words = explode("\n", $mod_keys ); … … 34 34 35 35 // Comment whitelisting: 36 if ( 1 == get_ settings('comment_whitelist')) {36 if ( 1 == get_option('comment_whitelist')) { 37 37 if ( 'trackback' == $comment_type || 'pingback' == $comment_type ) { // check if domain is in blogroll 38 38 $uri = parse_url($url); … … 125 125 function get_lastcommentmodified($timezone = 'server') { 126 126 global $cache_lastcommentmodified, $pagenow, $wpdb; 127 $add_seconds_blog = get_ settings('gmt_offset') * 3600;127 $add_seconds_blog = get_option('gmt_offset') * 3600; 128 128 $add_seconds_server = date('Z'); 129 129 $now = current_time('mysql', 1); … … 234 234 } 235 235 236 $mod_keys = trim( get_ settings('blacklist_keys') );236 $mod_keys = trim( get_option('blacklist_keys') ); 237 237 if ('' == $mod_keys ) 238 238 return false; // If moderation keys are empty … … 387 387 $post = &get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment 388 388 389 if ( get_ settings('comments_notify') && $commentdata['comment_approved'] && $post->post_author != $commentdata['user_ID'] )389 if ( get_option('comments_notify') && $commentdata['comment_approved'] && $post->post_author != $commentdata['user_ID'] ) 390 390 wp_notify_postauthor($comment_ID, $commentdata['comment_type']); 391 391 } … … 617 617 $excerpt = strip_tags($excerpt); 618 618 if ( function_exists('mb_strcut') ) // For international trackbacks 619 $excerpt = mb_strcut($excerpt, 0, 252, get_ settings('blog_charset')) . '...';619 $excerpt = mb_strcut($excerpt, 0, 252, get_option('blog_charset')) . '...'; 620 620 else 621 621 $excerpt = substr($excerpt, 0, 252) . '...'; … … 636 636 637 637 function generic_ping($post_id = 0) { 638 $services = get_ settings('ping_sites');638 $services = get_option('ping_sites'); 639 639 $services = preg_replace("|(\s)+|", '$1', $services); // Kill dupe lines 640 640 $services = trim($services); … … 745 745 $title = urlencode($title); 746 746 $excerpt = urlencode($excerpt); 747 $blog_name = urlencode(get_ settings('blogname'));747 $blog_name = urlencode(get_option('blogname')); 748 748 $tb_url = $trackback_url; 749 749 $url = urlencode(get_permalink($ID)); … … 752 752 $http_request = 'POST ' . $trackback_url['path'] . ($trackback_url['query'] ? '?'.$trackback_url['query'] : '') . " HTTP/1.0\r\n"; 753 753 $http_request .= 'Host: '.$trackback_url['host']."\r\n"; 754 $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_ settings('blog_charset')."\r\n";754 $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_option('blog_charset')."\r\n"; 755 755 $http_request .= 'Content-Length: '.strlen($query_string)."\r\n"; 756 756 $http_request .= "User-Agent: WordPress/" . $wp_version; … … 790 790 $client->debug = false; 791 791 $home = trailingslashit( get_option('home') ); 792 if ( !$client->query('weblogUpdates.extendedPing', get_ settings('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping793 $client->query('weblogUpdates.ping', get_ settings('blogname'), $home);792 if ( !$client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping 793 $client->query('weblogUpdates.ping', get_option('blogname'), $home); 794 794 } 795 795
Note: See TracChangeset
for help on using the changeset viewer.