2017 © Pedro Peláez
 

wordpress-plugin wp-disable-browse-happy

WordPress plugin to disable calls to the BrowseHappy API

image

wildwolf/wp-disable-browse-happy

WordPress plugin to disable calls to the BrowseHappy API

  • Sunday, December 17, 2017
  • by wildwolf
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

wp-disable-browse-happy

WordPress plugin to disable queries to BrowseHappy API (for example, for privacy reasons)., (*1)

When you go to the Admin Dashboard of your WordPress site, WP checks whether your browser is up-to-date, and displays a notice if it is not (i.e., "You are using an insecure browser!" or "Your browser is out of date!")., (*2)

This is probably not a bad thing, but: 1. It could be annoying for Linux users (they may have a browser with all security patches backported yet its version will not be the latest) 2. wp_check_browser_version() function, which implements the check, does that with a call to http://api.wordpress.org/core/browse-happy/1.1/ (or https:// if the SSL support is enabled):, (*3)

// include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' );

$url = 'http://api.wordpress.org/core/browse-happy/1.1/';
$options = array(
        'body'       => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ),
        'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' )
);

if ( wp_http_supports( array( 'ssl' ) ) ) {
        $url = set_url_scheme( $url, 'https' );
}

$response = wp_remote_post( $url, $options );

You can see that this code sends your user agent string, WordPress version, and the URL and IP address (implicitly) of the blog. Strictly speaking, it is enough to send only the user agent to check whether the browser is up-to-date, the rest of the information is not necessary., (*4)

WordPess plugin guidelines say that "In the interest of protecting user privacy, plugins may not contact external servers without the explicit consent of the user"., (*5)

I think that the same should apply to the WP Core itself; since WP "leaks the data" by default, and there is no way to opt out of that in the UI, you can use this plugin to turn off that functionality., (*6)

Installation

Via composer, (*7)

Run from WordPress root directory, (*8)

composer require wildwolf/wp-disable-browse-happy

Traditional way, (*9)

Upload the plugin to wp-content/plugins/, go to the Admin Dashboard => Plugins and activate the plugin., (*10)

Note: after you install and activate the plugin, it is possible that you still see the warning in the Dashboard. This happens because WP caches the check result for some time. You can either wait until it goes away, or, if you have WP-CLI, you can run this from your WP root directory:, (*11)

wp transient delete --all

The Versions

17/12 2017

dev-master

9999999-dev https://github.com/sjinks/disable-browse-happy

WordPress plugin to disable calls to the BrowseHappy API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Volodymyr Kolesnykov

plugin wordpress privacy browsehappy browse-happy

17/12 2017

1.0.1

1.0.1.0 https://github.com/sjinks/disable-browse-happy

WordPress plugin to disable calls to the BrowseHappy API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Volodymyr Kolesnykov

plugin wordpress privacy browsehappy browse-happy

11/12 2017

1.0.0

1.0.0.0 https://github.com/sjinks/disable-browse-happy

WordPress plugin to disable calls to the BrowseHappy API

  Sources   Download

MIT

The Requires

 

by Volodymyr Kolesnykov

plugin wordpress privacy browsehappy browse-happy