Skip to content

Commit 57dfb00

Browse files
committed
Re-enable plugin update cache. Rollback to 0.0.2 for re-release
1 parent 0e4b46a commit 57dfb00

File tree

5 files changed

+8
-19
lines changed

5 files changed

+8
-19
lines changed

changelog.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
0.0.3 / 2023-03-30
2-
===================
3-
4-
5-
0.0.3 / 2023-03-30
6-
===================
7-
8-
9-
0.0.3 / 2023-03-30
10-
===================
11-
12-
131
0.0.2 / 2023-03-29
142
===================
153

class-plugin-check.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* Plugin Name: Plugin Check
44
* Description: Scan a plugin for various checks when developing a WordPress plugin for the WordPress.org repository.
5-
* Version: 0.0.3
5+
* Version: 0.0.2
66
* Tested up to: 6.2
77
* Author: Evan Herman
88
* Author URI: https://evan-herman.com
@@ -31,7 +31,7 @@ public function __construct() {
3131

3232
require_once plugin_dir_path( __FILE__ ) . 'includes/class-remote-update.php';
3333

34-
define( 'WP_PLUGIN_CHECK_VERSION', '0.0.3' );
34+
define( 'WP_PLUGIN_CHECK_VERSION', '0.0.2' );
3535
define( 'WP_PLUGIN_SCRIPT_DIR', plugin_dir_path( __FILE__ ) . 'bin/plugin-scan/' );
3636

3737
add_action( 'admin_menu', array( $this, 'add_admin_menu' ) );

includes/class-remote-update.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class WP_Plugin_Check_Remote_Updater {
1515
public function __construct() {
1616

1717
$this->plugin_slug = dirname ( plugin_basename( __DIR__ ) );
18-
$this->version = '0.0.3';
18+
$this->version = '0.0.2';
1919
$this->cache_key = 'wp_plugin_check_remote_updater';
20-
$this->cache_allowed = false;
20+
$this->cache_allowed = true;
2121

2222
add_filter( 'plugins_api', [ $this, 'info' ], 20, 3 );
2323
add_filter( 'site_transient_update_plugins', [ $this, 'update' ] );
@@ -109,6 +109,7 @@ function info( $response, $action, $args ) {
109109

110110
public function update( $transient ) {
111111

112+
// Prevents our plugin from checking updates with https://wordpress.org/plugins/plugin-check/
112113
if ( isset( $transient->response['plugin-check/class-plugin-check.php'] ) ) {
113114
unset( $transient->response['plugin-check/class-plugin-check.php'] );
114115
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Plugin Check",
33
"title": "Plugin Check",
44
"description": "Scan a plugin for various checks when developing a WordPress plugin for the WordPress.org repository.",
5-
"version": "0.0.3",
5+
"version": "0.0.2",
66
"tested_up_to": "6.2",
77
"author": "Evan Herman",
88
"license": "GPL-2.0",

remote-update-assets/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"author" : "<a href=https://www.evan-herman.com>Evan Herman</a>",
55
"author_profile" : "https://profiles.wordpress.org/eherman24",
66
"donate_link" : "https://github.com/sponsors/EvanHerman",
7-
"version" : "0.0.3",
8-
"download_url" : "https://github.com/EvanHerman/plugin-check/releases/download/0.0.3/plugin-check.zip",
7+
"version" : "0.0.2",
8+
"download_url" : "https://github.com/EvanHerman/plugin-check/releases/download/0.0.2/plugin-check.zip",
99
"requires" : "6.0",
1010
"tested" : "6.2",
1111
"requires_php" : "7.4",

0 commit comments

Comments
 (0)