Skip to content

Commit abbbf17

Browse files
committed
remove to disable updater
1 parent af854eb commit abbbf17

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

http2-server-push-preload.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,3 @@ function activate_autoupdate() {
4444
}
4545
Http2_Server_Push\send_http2_link_header( Http2_Server_Push\get_preload_items() );
4646
}, 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

Comments
 (0)