Skip to content

Commit b2471fb

Browse files
committed
Move plugin check to composer package. Bump version to 1.0.2.
1 parent 78c5703 commit b2471fb

File tree

5 files changed

+50
-201
lines changed

5 files changed

+50
-201
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@
1919
"scripts-descriptions": {
2020
"fix": "Automatically fix coding standards issues where possible.",
2121
"lint": "Check files against coding standards."
22+
},
23+
"require": {
24+
"wp-forge/wp-plugin-check": "^1.0"
2225
}
2326
}

composer.lock

Lines changed: 36 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/plugin-check.php

Lines changed: 0 additions & 195 deletions
This file was deleted.

readme.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: shortcode
55
Requires PHP: 5.6
66
Requires at least: 3.2
77
Tested up to: 5.4
8-
Stable tag: 1.0.1
8+
Stable tag: 1.0.2
99
License: GPLv3
1010
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1111

@@ -74,6 +74,9 @@ Note: You must have the 'manage_options' capability to see the 'Shortcodes' menu
7474

7575
== Changelog ==
7676

77+
= 1.0.2 =
78+
* Minor code refactor to use Composer packages.
79+
7780
= 1.0.1 =
7881
* Tested in WordPress version 5.1
7982
* Updated code to abide by coding standards.
@@ -83,5 +86,8 @@ Note: You must have the 'manage_options' capability to see the 'Shortcodes' menu
8386

8487
== Upgrade Notice ==
8588

89+
= 1.0.2 =
90+
* Minor code improvements.
91+
8692
= 1.0.1 =
8793
* Tested in WordPress version 5.1

shortcode-scrubber.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Shortcode Scrubber
44
* Plugin URI: https://wpscholar.com/wordpress-plugins/shortcode-scrubber/
55
* Description: A powerful tool for cleaning up shortcodes on your site and confidently managing plugins and themes that use shortcodes.
6-
* Version: 1.0.1
6+
* Version: 1.0.2
77
* Author: Micah Wood
88
* Author URI: https://wpscholar.com
99
* Requires at least: 3.2
@@ -21,11 +21,12 @@
2121
define( 'SHORTCODE_SCRUBBER_FILE', __FILE__ );
2222
define( 'SHORTCODE_SCRUBBER_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
2323

24+
require __DIR__ . '/vendor/autoload.php';
25+
2426
// Check plugin requirements
2527
global $pagenow;
2628
if ( 'plugins.php' === $pagenow ) {
27-
require dirname( __FILE__ ) . '/includes/plugin-check.php';
28-
$plugin_check = new Shortcode_Scrubber_Plugin_Check( __FILE__ );
29+
$plugin_check = new WP_Forge_Plugin_Check( __FILE__ );
2930

3031
$plugin_check->min_php_version = '5.6';
3132
$plugin_check->min_wp_version = '3.2';

0 commit comments

Comments
 (0)