Skip to content

Commit ea8e707

Browse files
committed
Ensure plugin row action link points to settings page
1 parent 7a64121 commit ea8e707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private static function add_plugin_page_row_action_links() {
8383
add_filter( 'plugin_action_links_wp-php-console/wp-php-console.php', static function( $actions ) {
8484

8585
return array_merge( [
86-
'<a href="' . esc_url( admin_url() ) . '">' . esc_html__( 'Settings', 'wp-php-console' ) . '</a>',
86+
'<a href="' . esc_url( admin_url( 'options-general.php?page=' . str_replace( '-', '_', Plugin::ID ) ) ) . '">' . esc_html__( 'Settings', 'wp-php-console' ) . '</a>',
8787
'<a href="' . esc_url( Plugin::get_project_page_url() ) . '">' . esc_html__( 'GitHub', 'wp-php-console' ) . '</a>',
8888
'<a href="' . esc_url( Plugin::get_support_page_url() ) . '">' . esc_html__( 'Support', 'wp-php-console' ) . '</a>',
8989
'<a href="' . esc_url( Plugin::get_reviews_page_url() ) . '">' . esc_html__( 'Review', 'wp-php-console' ) . '</a>',

0 commit comments

Comments
 (0)