[wp-trac] [WordPress Trac] #43160: Reduce wp-admin/update-core.php load time by half
WordPress Trac
noreply at wordpress.org
Fri Jan 26 20:26:21 UTC 2018
#43160: Reduce wp-admin/update-core.php load time by half
-----------------------------+------------------------------------------
Reporter: lano1106 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 4.9.2
Severity: normal | Resolution:
Keywords: | Focuses: administration, performance
-----------------------------+------------------------------------------
Comment (by lano1106):
Hi, I have new info concerning my wp-admin/update-core.php slowness issue.
It is caused by the plugin Ad Inserter Pro (author contacted) who does
this:
{{{#!php
<?php
add_filter (‘http_headers_useragent’, ‘ai_http_headers_useragent’);
function ai_http_headers_useragent ($useragent) {
$useragent = get_bloginfo (‘url’);
return $useragent;
}
}}}
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.
http_headers_useragent filter hook appears to be VERY VERY risky hook...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43160#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list