Remove duplicate settings action link #10

Merged
ogrecooper merged 4 commits from duplicate-settings-link into main 2026-08-14 15:06:37 +00:00
6 changed files with 42 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://getcomposer.org/schema.json",
"name": "cleverogre/ogre-captcha",
"version": "1.2.6",
"version": "1.2.7",
"title": "Ogre CAPTCHA",
"description": "Protect your site with CAPTCHA",
"author": "CleverOgre",
+17 -1
View File
@@ -4,7 +4,7 @@
* @author cleverogre
* @copyright 2026 CleverOgre
* @license GLP-3.0-or-later
* @version 1.2.5
* @version 1.2.7
* @since 1.0.0
*/
@@ -12,6 +12,7 @@ namespace Ogre\Captcha;
use Ogre\Singleton;
use Ogre\Captcha as Plugin;
use Ogre\Captcha\GravityForms\Addon;
defined('ABSPATH') || exit;
@@ -378,6 +379,21 @@ final class Settings {
]
);
if (Plugin::is_gravityforms_active() && class_exists('Ogre\Captcha\GravityForms\Addon')) {
add_settings_section(
'gravityforms',
Plugin::__('Gravity Forms'),
[$this, 'section'],
Plugin::get_id(),
[
'description' => sprintf(
Plugin::__('The configuration of Ogre CAPTCHA\'s Gravityforms integration can be found on <a href="%s">this page</a> and within the settings of each form.'),
esc_url(Addon::get_instance()->get_url())
),
]
);
}
}
+16 -1
View File
@@ -4,7 +4,7 @@
* @author cleverogre
* @copyright 2026 CleverOgre
* @license GLP-3.0-or-later
* @version 1.2.1
* @version 1.2.7
* @since 1.1.0
*/
@@ -172,4 +172,19 @@ final class Addon extends GFAddOn {
return $validation_result;
}
public function plugin_settings_link( $links, $file ) {
// Remove plugin action link
return $links;
}
public function get_url(): string {
return add_query_arg(
[
'page' => 'gf_settings',
'subview' => $this->get_slug()
],
admin_url('admin.php')
);
}
}
+2 -2
View File
@@ -6,14 +6,14 @@
* @author cleverogre
* @copyright 2026 CleverOgre
* @license GLP-3.0-or-later
* @version 1.2.6
* @version 1.2.7
* @since 1.0.0
*
* @wordpress-plugin
* Plugin Name: Ogre CAPTCHA
* Plugin URI: https://git.cleverogre.com/cleverogre/ogre-captcha/
* Description: Protect your site with CAPTCHA
* Version: 1.2.6
* Version: 1.2.7
* Requires at least: 6.0
* Requires PHP: 8.2
* Author: CleverOgre
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://www.schemastore.org/package.json",
"name": "cleverogre/ogre-captcha",
"version": "1.2.6",
"version": "1.2.7",
"title": "Ogre CAPTCHA",
"description": "Protect your site with CAPTCHA",
"author": "CleverOgre",
+5 -1
View File
@@ -3,7 +3,7 @@ Contributors: ogrecooper, cleverogre
Tested up to: 7.0
Requires at least: 6.0
Requires PHP: 8.2
Version: 1.2.6
Version: 1.2.7
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Copyright: CleverOgre
@@ -28,6 +28,10 @@ If you don't know what plugin you have downloaded, please contact [CleverOgre](t
== Changelog ==
= 1.2.7 - 2026-08-14 =
* Remove duplicate settings link
* Add Gravity Forms section to settings page
= 1.2.6 - 2026-07-15 =
* Fix bug with lost password reset when using AIOWPS