[wp-trac] [WordPress Trac] #37709: Referrer on wp-cron API POST requests

WordPress Trac noreply at wordpress.org
Thu Jan 24 22:45:43 UTC 2019


#37709: Referrer on wp-cron API POST requests
---------------------------+----------------------
 Reporter:  bucktothebang  |       Owner:  (none)
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Cron API       |     Version:
 Severity:  normal         |  Resolution:  wontfix
 Keywords:  needs-patch    |     Focuses:
---------------------------+----------------------

Comment (by peterwilsoncc):

 It's worth adding to the note above that `wp_remote_post()` now includes a
 UA string of `'WordPress/' . get_bloginfo( 'version' ) . '; ' .
 get_bloginfo( 'url' )`.

 A custom UA string can be set by developers using the
 `http_headers_useragent` filter to modify it for all requests, or the
 `cron_request` filter to modify it for cron requests.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/37709#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list