Changeset 38459 for trunk/src/wp-includes/comment.php
- Timestamp:
- 08/31/2016 05:48:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r38411 r38459 2363 2363 * @since 0.71 2364 2364 * 2365 * @global string $wp_version2366 *2367 2365 * @param string $content Post content to check for links. 2368 2366 * @param int $post_ID Post ID. 2369 2367 */ 2370 2368 function pingback($content, $post_ID) { 2371 global $wp_version;2372 2373 2369 // original code by Mort (http://mort.mine.nu:8080) 2374 2370 $post_links = array(); … … 2436 2432 * @param string $pagelinkedfrom URL of page linked from. 2437 2433 */ 2438 $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . $wp_version, $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom );2434 $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . get_bloginfo( 'version' ), $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom ); 2439 2435 // when set to true, this outputs debug messages by itself 2440 2436 $client->debug = false; … … 2505 2501 * @since 1.2.0 2506 2502 * 2507 * @global string $wp_version2508 *2509 2503 * @param string $server Host of blog to connect to. 2510 2504 * @param string $path Path to send the ping. 2511 2505 */ 2512 2506 function weblog_ping($server = '', $path = '') { 2513 global $wp_version;2514 2515 2507 // using a timeout of 3 seconds should be enough to cover slow servers 2516 2508 $client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); 2517 2509 $client->timeout = 3; 2518 $client->useragent .= ' -- WordPress/' .$wp_version;2510 $client->useragent .= ' -- WordPress/' . get_bloginfo( 'version' ); 2519 2511 2520 2512 // when set to true, this outputs debug messages by itself
Note: See TracChangeset
for help on using the changeset viewer.