5 Commits

Author SHA1 Message Date
Cooper Dalrymple f8e5bd4e3f Update to version 1.2.3 2026-06-12 09:55:23 -05:00
Cooper Dalrymple 5c4d471fc0 Fix non-required argument 2026-06-11 13:40:08 -05:00
Cooper Dalrymple 1cae0e1310 Update to version 1.2.2 2026-06-11 13:36:35 -05:00
Cooper Dalrymple e0ef6dd34d Prevent double loading 2026-06-09 17:34:39 -05:00
Cooper Dalrymple 47ca0903b1 Fix cli args 2026-06-09 17:34:31 -05:00
5 changed files with 91 additions and 79 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"$schema": "https://getcomposer.org/schema.json", "$schema": "https://getcomposer.org/schema.json",
"name": "cleverogre/ogre-captcha", "name": "cleverogre/ogre-captcha",
"version": "1.2.1", "version": "1.2.3",
"title": "Ogre CAPTCHA", "title": "Ogre CAPTCHA",
"description": "Protect your site with CAPTCHA", "description": "Protect your site with CAPTCHA",
"author": "CleverOgre", "author": "CleverOgre",
+4 -3
View File
@@ -4,7 +4,7 @@
* @author cleverogre * @author cleverogre
* @copyright 2026 CleverOgre * @copyright 2026 CleverOgre
* @license GLP-3.0-or-later * @license GLP-3.0-or-later
* @version 1.2.1 * @version 1.2.3
* @since 1.2.1 * @since 1.2.1
*/ */
@@ -109,8 +109,9 @@ final class CLI {
* @when after_wp_load * @when after_wp_load
*/ */
public function form(array $args, array $assoc_args):void { public function form(array $args, array $assoc_args):void {
list($locations) = $args; $locations = !empty($args) ? (array) array_values($args)[0] : [];
extract($assoc_args); $all = $assoc_args['all'] ?? false;
$disable = $assoc_args['disable'] ?? false;
if (empty($locations) && !$all) { if (empty($locations) && !$all) {
WP_CLI::error('Please specify one or more form locations, or use --all.'); WP_CLI::error('Please specify one or more form locations, or use --all.');
+6 -2
View File
@@ -6,14 +6,14 @@
* @author cleverogre * @author cleverogre
* @copyright 2026 CleverOgre * @copyright 2026 CleverOgre
* @license GLP-3.0-or-later * @license GLP-3.0-or-later
* @version 1.2.1 * @version 1.2.3
* @since 1.0.0 * @since 1.0.0
* *
* @wordpress-plugin * @wordpress-plugin
* Plugin Name: Ogre CAPTCHA * Plugin Name: Ogre CAPTCHA
* Plugin URI: https://git.cleverogre.com/cleverogre/ogre-captcha/ * Plugin URI: https://git.cleverogre.com/cleverogre/ogre-captcha/
* Description: Protect your site with CAPTCHA * Description: Protect your site with CAPTCHA
* Version: 1.2.1 * Version: 1.2.3
* Requires at least: 6.0 * Requires at least: 6.0
* Requires PHP: 8.2 * Requires PHP: 8.2
* Author: CleverOgre * Author: CleverOgre
@@ -41,6 +41,8 @@ defined('ABSPATH') || exit;
require_once 'vendor/autoload.php'; require_once 'vendor/autoload.php';
if (!class_exists('Ogre\Captcha')) {
final class Captcha extends Plugin { final class Captcha extends Plugin {
public static function is_woocommerce_active():bool { public static function is_woocommerce_active():bool {
@@ -121,3 +123,5 @@ final class Captcha extends Plugin {
} }
Captcha::instance(); Captcha::instance();
}
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"$schema": "https://www.schemastore.org/package.json", "$schema": "https://www.schemastore.org/package.json",
"name": "cleverogre/ogre-captcha", "name": "cleverogre/ogre-captcha",
"version": "1.2.1", "version": "1.2.3",
"title": "Ogre CAPTCHA", "title": "Ogre CAPTCHA",
"description": "Protect your site with CAPTCHA", "description": "Protect your site with CAPTCHA",
"author": "CleverOgre", "author": "CleverOgre",
+8 -1
View File
@@ -3,7 +3,7 @@ Contributors: ogrecooper, cleverogre
Tested up to: 7.0 Tested up to: 7.0
Requires at least: 6.0 Requires at least: 6.0
Requires PHP: 8.2 Requires PHP: 8.2
Version: 1.2.1 Version: 1.2.3
License: GPLv3 or later License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html License URI: https://www.gnu.org/licenses/gpl-3.0.html
Copyright: CleverOgre Copyright: CleverOgre
@@ -28,6 +28,13 @@ If you don't know what plugin you have downloaded, please contact [CleverOgre](t
== Changelog == == Changelog ==
= 1.2.3 - 2026-06-12 =
* Fix optional argument in CLI
= 1.2.2 - 2026-06-11 =
* Prevent main class loading bug
* Fix WP CLI associative arguments
= 1.2.1 - 2026-06-09 = = 1.2.1 - 2026-06-09 =
* Added WP CLI commands to modify settings * Added WP CLI commands to modify settings