Changes in trunk/wp-admin/update-links.php [4144:3295]
- File:
-
- 1 edited
-
trunk/wp-admin/update-links.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/update-links.php
r4144 r3295 4 4 5 5 if ( !get_option('use_linksupdate') ) 6 wp_die(__('Feature disabled.'));6 die(__('Feature disabled.')); 7 7 8 8 $link_uris = $wpdb->get_col("SELECT link_url FROM $wpdb->links"); 9 9 10 10 if ( !$link_uris ) 11 wp_die(__('No links'));11 die('No links'); 12 12 13 13 $link_uris = urlencode( join( $link_uris, "\n" ) ); … … 17 17 $http_request = "POST /updated-batch/ HTTP/1.0\r\n"; 18 18 $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"; 20 20 $http_request .= 'Content-Length: ' . strlen($query_string) . "\r\n"; 21 21 $http_request .= 'User-Agent: WordPress/' . $wp_version . "\r\n"; … … 24 24 25 25 $response = ''; 26 if ( false !== ( $fs = @fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) {26 if( false !== ( $fs = fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) { 27 27 fwrite($fs, $http_request); 28 28 while ( !feof($fs) )
Note: See TracChangeset
for help on using the changeset viewer.