Skip to content

Commit

Permalink
Merge pull request #33 from mailchimp/fix/plugin-link
Browse files Browse the repository at this point in the history
Ensure the settings link on the plugin list screen goes to the new settings page
  • Loading branch information
dkotter authored Jun 18, 2024
2 parents f4d0c86 + 7b27e73 commit 2764c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function mailchimp_sf_plugin_init() {
* @return array - Links
*/
function mailchimp_sf_plugin_action_links( $links ) {
$settings_page = add_query_arg( array( 'page' => 'mailchimp_sf_options' ), admin_url( 'options-general.php' ) );
$settings_link = '<a href="' . esc_url( $settings_page ) . '">' . __( 'Settings', 'mailchimp_i18n' ) . '</a>';
$settings_page = add_query_arg( array( 'page' => 'mailchimp_sf_options' ), admin_url( 'admin.php' ) );
$settings_link = '<a href="' . esc_url( $settings_page ) . '">' . esc_html__( 'Settings', 'mailchimp_i18n' ) . '</a>';
array_unshift( $links, $settings_link );
return $links;
}
Expand Down

0 comments on commit 2764c18

Please sign in to comment.