Make WordPress Core

Ticket #27626: disable-wp-check-browser-version.0.2.php

File disable-wp-check-browser-version.0.2.php, 451 bytes (added by SergeyBiryukov, 10 years ago)

Simplified version

Line 
1<?php
2/*
3Plugin Name: Disable wp_check_browser_version()
4Version: 0.2
5Plugin URI: https://core.trac.wordpress.org/ticket/27626
6Description: Disables the check whether the user needs a browser update.
7Author: Sergey Biryukov
8Author URI: http://profiles.wordpress.org/sergeybiryukov/
9*/
10
11if ( ! empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
12        add_filter( 'pre_site_transient_browser_' . md5( $_SERVER['HTTP_USER_AGENT'] ), '__return_null' );
13}
14?>