Commit 1a97509d authored by John James Jacoby's avatar John James Jacoby

Updaters.

parent 645fccee
......@@ -67,7 +67,7 @@ class Flox_Plugin_Updater extends Flox_Licensed_Product {
add_action( 'admin_init', array( $this, 'show_changelog' ) );
// Filters
add_filter( 'site_transient_update_plugins', array( $this, 'plugin_update_transient' ) );
add_filter( 'site_transient_update_plugins', array( $this, 'maybe_update_transient' ) );
add_filter( 'delete_site_transient_update_plugins', array( $this, 'delete_update_transient' ) );
// Filters
......@@ -294,7 +294,7 @@ class Flox_Plugin_Updater extends Flox_Licensed_Product {
// Maybe unserialize sections
if ( ! empty( $request->sections ) ) {
$request->sections = maybe_unserialize( $request->sections );
// No sections, so set to false
} else {
$request = false;
......@@ -334,7 +334,7 @@ class Flox_Plugin_Updater extends Flox_Licensed_Product {
exit;
}
/**
* Check for Swifter update and include data in transient response
*
......
......@@ -143,23 +143,6 @@ class Flox_Theme_Updater extends Flox_Licensed_Product {
echo ob_get_clean();
}
/**
* Check for Swifter update and include data in transient response
*
* @param array $value
* @return array
*/
public function theme_update_transient( $value = false ) {
return $this->maybe_update_transient( $value );
}
/**
* Delete the Swifter theme update transient
*/
public function delete_theme_update_transient() {
$this->set_update_transient( false );
}
/**
* Disable requests to wp.org repository for this theme.
*/
......
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