Skip to content

Commit ffe1f72

Browse files
committed
Update the deployed_time in the manifest on version
1 parent eae373e commit ffe1f72

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
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.

bin/version.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sed -i 's/Version: .*/Version: '"$VERSION"'/' class-plugin-check.php
1313
# $this->version = '0.0.2';
1414
sed -i 's/$this->version .*/$this->version = '"'$VERSION'"';/' includes/class-remote-update.php
1515

16-
# Replace the plugin versions in the manifest file.
16+
# Replace the plugin versions in the remote update manifest file.
1717
# "version" : "0.0.2",
1818
# "download_url" : "https://github.com/EvanHerman/plugin-check/releases/download/0.0.2/plugin-check.zip",
1919
sed -i 's/"version" : .*/"version" : '"\"$VERSION\""',/' remote-update-assets/manifest.json
@@ -29,4 +29,8 @@ sed -i "s/# WordPress Plugin Check .*/# WordPress Plugin Check v"$VERSION"/" REA
2929

3030
# Replace the plugin version in the readme.txt file.
3131
# Stable tag: 0.0.1
32-
sed -i "s/Stable tag: .*/Stable tag: "$VERSION"/" readme.txt
32+
sed -i "s/Stable tag: .*/Stable tag: "$VERSION"/" readme.txt
33+
34+
# Update the deploy time in the remote update manifest file.
35+
# "last_updated" : "2023-03-30 00:00:00",
36+
sed -i '' 's/"last_updated" : .*/"last_updated" : "'"$(date -u +"%Y-%m-%d %T")"'",/' remote-update-assets/manifest.json

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: 1 addition & 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

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

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)