Commit 453966f6 authored by John James Jacoby's avatar John James Jacoby

Noop

parent 1a97509d
......@@ -56,7 +56,7 @@ class Flox_Theme_Updater extends Flox_Licensed_Product {
add_filter( 'delete_site_transient_update_themes', array( $this, 'delete_update_transient' ) );
// Disable wporg requests
add_filter( 'http_request_args', array( $this, 'disable_wporg_request' ), 5, 2 );
add_filter( 'http_request_args', array( $this, 'noop_wporg_request' ), 5, 2 );
}
/** Public ****************************************************************/
......@@ -144,11 +144,12 @@ class Flox_Theme_Updater extends Flox_Licensed_Product {
}
/**
* Disable requests to wp.org repository for this theme.
* Prevent requests to wordpress.org repository for this theme and any
* decendants of it.
*/
public function disable_wporg_request( $args = array(), $url = '' ) {
public function noop_wporg_request( $args = array(), $url = '' ) {
// Bail if not WordPress.org theme update request
// Bail if not wordpress.org theme update request
if ( 0 !== strpos( $url, 'https://api.wordpress.org/themes/update-check/1.1/' ) ) {
return $args;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment