Changes between Initial Version and Version 1 of Ticket #43160, comment 1
- Timestamp:
- 01/26/2018 08:27:48 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #43160, comment 1
initial v1 3 3 {{{#!php 4 4 <?php 5 add_filter ( ‘http_headers_useragent’, ‘ai_http_headers_useragent’);5 add_filter ('http_headers_useragent', 'ai_http_headers_useragent'); 6 6 7 7 function ai_http_headers_useragent ($useragent) { 8 8 9 $useragent = get_bloginfo ( ‘url’);9 $useragent = get_bloginfo ('url'); 10 10 11 11 return $useragent; … … 14 14 }}} 15 15 16 This appears to disrupt all the other premium plugins when they contact their servers to check the license validity. One of the things that they do remotely is to authenticate the request by checking the user-agent header-field. By messing with it, it disrupts a LOT of stuff. 16 This appears to disrupt all the other premium plugins when they contact their servers to check the license validity. One of the things that they do remotely is to authenticate the request by checking the user-agent header-field. By messing with it, it disrupts a LOT of stuff. and makes a lot of things VERY slow. 17 17 18 18 http_headers_useragent filter hook appears to be VERY VERY risky hook...