Skip to content

Commit 252544d

Browse files
committed
Make .sh files executable after plugin upgrade
1 parent d9a0639 commit 252544d

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# WordPress Plugin Check v0.0.3
1+
# WordPress Plugin Check v0.0.2
22
Scan your WordPress plugin for common errors before submitting it to WordPress.org for review.
33

44
The Plugin Check plugin can be used to check a plugin locally on a test site during development, or it can be used to check a plugin `.zip` from a remote URL.

changelog.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
0.0.3 / 2023-03-30
2-
===================
3-
4-
51
0.0.2 / 2023-03-29
62
===================
73

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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ 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';
2020
$this->cache_allowed = true;
2121

@@ -142,6 +142,9 @@ public function purge( $upgrader, $options ) {
142142
delete_transient( $this->cache_key );
143143
}
144144

145+
// Make our .sh files executable.
146+
exec( 'chmod +x ' . WP_PLUGIN_SCRIPT_DIR . '*.sh' );
147+
145148
}
146149

147150
}

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",

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== Plugin Check ===
22
Contributors: eherman24
3-
Stable tag: 0.0.3
3+
Stable tag: 0.0.2
44
Requires at Least: 6.0
55
Tested Up To: 6.2
66
Requires PHP: 7.4

0 commit comments

Comments
 (0)