Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion src/wp-admin/options-connectors.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,28 @@
$title = __( 'Connectors' );

// Set parent file for menu highlighting.
$parent_file = 'options-general.php';
$parent_file = 'options-general.php';
$submenu_file = 'options-connectors.php';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$submenu_file = 'options-connectors.php';

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mukeshpanchal27 Thanks for the review.

I’ve removed the extra admin_head action and the inline script so the patch no longer adds additional actions or inline styles.

The remaining fix focuses only on the RTL menu arrow issue on the Connectors screen.

Please let me know if you’d prefer a different approach.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mukeshpanchal27 I’d recommend keeping this line.

$submenu_file is the standard way in wp-admin to mark the active submenu item. Without it, the "Connectors" item under Settings is not highlighted when visiting the page.

This follows the same pattern used in other options pages such as options-general.php.


require_once ABSPATH . 'wp-admin/admin-header.php';

// Render the Connectors page.
wp_options_connectors_wp_admin_render_page();

if ( is_rtl() ) {
?>
<style>
.rtl .admin-ui-page__header > div > div:first-child {
justify-content: start;
}

.rtl ul#adminmenu a.wp-has-current-submenu::after,
.rtl ul#adminmenu > li.current > a.current::after {
border-right-color: transparent;
border-left-color: #fff;
}
</style>
<?php
}

require_once ABSPATH . 'wp-admin/admin-footer.php';
Loading