We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af854eb commit abbbf17Copy full SHA for abbbf17
http2-server-push-preload.php
@@ -44,14 +44,3 @@ function activate_autoupdate() {
44
}
45
Http2_Server_Push\send_http2_link_header( Http2_Server_Push\get_preload_items() );
46
}, 9999 );
47
-
48
-add_filter( 'http_request_args', function ( $response, $url ) {
49
- if ( 0 === strpos( $url, 'https://api.wordpress.org/plugins/update-check' ) ) {
50
- $basename = plugin_basename( __FILE__ );
51
- $plugins = json_decode( $response['body']['plugins'] );
52
- unset( $plugins->plugins->$basename );
53
- unset( $plugins->active[ array_search( $basename, $plugins->active ) ] );
54
- $response['body']['plugins'] = json_encode( $plugins );
55
- }
56
- return $response;
57
-}, 10, 2 );
0 commit comments