Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update-links.php

    r4144 r3295  
    44
    55if ( !get_option('use_linksupdate') )
    6     wp_die(__('Feature disabled.'));
     6    die(__('Feature disabled.'));
    77
    88$link_uris = $wpdb->get_col("SELECT link_url FROM $wpdb->links");
    99
    1010if ( !$link_uris )
    11     wp_die(__('No links'));
     11    die('No links');
    1212
    1313$link_uris = urlencode( join( $link_uris, "\n" ) );
     
    1717$http_request  = "POST /updated-batch/ HTTP/1.0\r\n";
    1818$http_request .= "Host: api.pingomatic.com\r\n";
    19 $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_option('blog_charset')."\r\n";
     19$http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_settings('blog_charset')."\r\n";
    2020$http_request .= 'Content-Length: ' . strlen($query_string) . "\r\n";
    2121$http_request .= 'User-Agent: WordPress/' . $wp_version . "\r\n";
     
    2424
    2525$response = '';
    26 if ( false !== ( $fs = @fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) {
     26if( false !== ( $fs = fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) {
    2727    fwrite($fs, $http_request);
    2828    while ( !feof($fs) )
Note: See TracChangeset for help on using the changeset viewer.