Changeset 3663 for trunk/wp-includes/functions.php
- Timestamp:
- 03/30/2006 07:36:54 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r3659 r3663 1120 1120 } 1121 1121 1122 function spawn_pinger() {1123 global $wpdb;1124 $doping = false;1125 if ( $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE TRIM(to_ping) != '' LIMIT 1") )1126 $doping = true;1127 1128 if ( $wpdb->get_var("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_pingme' OR meta_key = '_encloseme' LIMIT 1") )1129 $doping = true;1130 1131 if ( substr(php_sapi_name(), 0, 3) == 'cgi' )1132 return $doping;1133 1134 if ( $doping ) {1135 $ping_url = get_settings('siteurl') .'/wp-admin/execute-pings.php';1136 $parts = parse_url($ping_url);1137 $argyle = @ fsockopen($parts['host'], $_SERVER['SERVER_PORT'], $errno, $errstr, 0.01);1138 if ( $argyle )1139 fputs($argyle, "GET {$parts['path']}?time=".time()." HTTP/1.0\r\nHost: {$_SERVER['HTTP_HOST']}\r\n\r\n");1140 }1141 }1142 1143 1122 function do_enclose( $content, $post_ID ) { 1144 1123 global $wp_version, $wpdb;
Note: See TracChangeset
for help on using the changeset viewer.