Make WordPress Core


Ignore:
Timestamp:
03/30/2006 07:36:54 AM (20 years ago)
Author:
ryan
Message:

Future post pinging and cron fixups from masquerade. fixes #2469

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r3659 r3663  
    11201120}
    11211121
    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 
    11431122function do_enclose( $content, $post_ID ) {
    11441123    global $wp_version, $wpdb;
Note: See TracChangeset for help on using the changeset viewer.