Skip to content

Commit

Permalink
fix(settings): Fix build for settings link
Browse files Browse the repository at this point in the history
  • Loading branch information
mfilip authored and cblanc committed Jun 25, 2024
1 parent 239769c commit 71b63b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions uk-address-postcode-validation/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ Prices range between 2 and 2.5p per lookup, with alternate pricing options avail

== Changelog ==

= 3.5.7 =
* Fix broken settings link on Plugins list page

= 3.5.6 =
* Update Postcode Lookup to version 2.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'add_action_links' );

function add_action_links ( $actions ) {
$link = admin_url("admin.php?page=wc-settings&tab=integration&section=idealpostcodes");
$mylinks = array(
'<a href="/wp-admin/admin.php?page=wc-settings&tab=integration&section=idealpostcodes">Settings</a>',
'<a href="'.$link.'">Settings</a>',
);
$actions = array_merge( $actions, $mylinks );
return $actions;
Expand Down

0 comments on commit 71b63b5

Please sign in to comment.