Skip to content

Commit e0ecd9b

Browse files
Merge pull request #163 from Joel-James/fix/fix_wrong_admin_url
👌 Use network_admin_url to get network correct settings url
2 parents a8894f1 + 6631a9d commit e0ecd9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/class-nginx-helper-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function nginx_helper_settings_link( $links ) {
316316
$setting_page = 'options-general.php';
317317
}
318318

319-
$settings_link = '<a href="' . admin_url( $setting_page . '?page=nginx' ) . '">' . __( 'Settings', 'nginx-helper' ) . '</a>';
319+
$settings_link = '<a href="' . network_admin_url( $setting_page . '?page=nginx' ) . '">' . __( 'Settings', 'nginx-helper' ) . '</a>';
320320
array_unshift( $links, $settings_link );
321321

322322
return $links;

0 commit comments

Comments
 (0)