Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f8e5bd4e3f | |||
| 5c4d471fc0 | |||
| 1cae0e1310 | |||
| e0ef6dd34d | |||
| 47ca0903b1 |
+1
-1
@@ -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
@@ -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.');
|
||||||
|
|||||||
+9
-5
@@ -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,7 +41,9 @@ defined('ABSPATH') || exit;
|
|||||||
|
|
||||||
require_once 'vendor/autoload.php';
|
require_once 'vendor/autoload.php';
|
||||||
|
|
||||||
final class Captcha extends Plugin {
|
if (!class_exists('Ogre\Captcha')) {
|
||||||
|
|
||||||
|
final class Captcha extends Plugin {
|
||||||
|
|
||||||
public static function is_woocommerce_active():bool {
|
public static function is_woocommerce_active():bool {
|
||||||
return is_plugin_active('woocommerce/woocommerce.php');
|
return is_plugin_active('woocommerce/woocommerce.php');
|
||||||
@@ -118,6 +120,8 @@ final class Captcha extends Plugin {
|
|||||||
GFAddOn::register(Addon::class);
|
GFAddOn::register(Addon::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Captcha::instance();
|
Captcha::instance();
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
+1
-1
@@ -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
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user