Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43160, comment 1


Ignore:
Timestamp:
01/26/2018 08:27:48 PM (6 years ago)
Author:
lano1106
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43160, comment 1

    initial v1  
    33{{{#!php
    44<?php
    5 add_filter (‘http_headers_useragent’, ‘ai_http_headers_useragent’);
     5add_filter ('http_headers_useragent', 'ai_http_headers_useragent');
    66
    77function ai_http_headers_useragent ($useragent) {
    88
    9  $useragent = get_bloginfo (‘url’);
     9 $useragent = get_bloginfo ('url');
    1010
    1111 return $useragent;
     
    1414}}}
    1515
    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.
     16This 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.
    1717
    1818http_headers_useragent filter hook appears to be VERY VERY risky hook...