WordPress.org

Make WordPress Core

Changeset 46750


Ignore:
Timestamp:
11/19/2019 11:05:08 AM (3 weeks ago)
Author:
SergeyBiryukov
Message:

XML-RPC: Pass correct variable as the URL parameter to http_headers_useragent filter in wp_xmlrpc_server::pingback_ping().

Props wpgurudev, andreaitm.
Fixes #48721. See #42186.

File:
1 edited

Legend:

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

    r46686 r46750  
    68496849
    68506850        /** This filter is documented in wp-includes/class-http.php */
    6851         $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ), $url );
     6851        $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ), $pagelinkedfrom );
    68526852
    68536853        // Let's check the remote site
Note: See TracChangeset for help on using the changeset viewer.