Skip to content

Commit

Permalink
fix: update settings link
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein authored and Jon Waldstein committed Oct 23, 2024
1 parent b6514ed commit 7e459c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/Addon/Links.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace GiveCloudflareTurnstile\Addon;

use GiveCloudflareTurnstile\Settings\Repositories\GlobalSettings;

/**
* @since 1.0.0
*/
Expand All @@ -14,10 +16,12 @@ class Links
*/
public function __invoke($actions): array
{
/** @var GlobalSettings $settings */
$settings = give(GlobalSettings::class);
$newActions = array(
'settings' => sprintf(
'<a href="%s">%s</a>',
esc_url(admin_url('edit.php?post_type=give_forms&page=give-settings&tab=advanced&section=cloudflare_turnstile')),
esc_url($settings->getSettingsUrl()),
__('Settings', 'givewp-cloudflare-turnstile')
),
);
Expand Down
2 changes: 1 addition & 1 deletion src/Addon/Notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ public static function giveVersionError(): void
*/
public static function giveInactive(): void
{
echo esc_attr(View::load('admin/notices/give-inactive'));
echo esc_html(View::load('admin/notices/give-inactive'));
}
}

0 comments on commit 7e459c6

Please sign in to comment.