Make WordPress Core


Ignore:
Timestamp:
02/09/2018 06:10:15 PM (6 years ago)
Author:
johnbillion
Message:

HTTP API: Add the URL as a paramter to various HTTP related filters.

Props paulschreiber, purnendu

Fixes #42186

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r42648 r42682  
    67456745
    67466746        /** This filter is documented in wp-includes/class-http.php */
    6747         $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ) );
     6747        $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ), $url );
    67486748
    67496749        // Let's check the remote site
Note: See TracChangeset for help on using the changeset viewer.