Make WordPress Core

Opened 4 months ago

Closed 94 minutes ago

Last modified 89 minutes ago

#62546 closed defect (bug) (invalid)

Duplicate menu-top-first class in admin menu

Reported by: kkmuffme's profile kkmuffme Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: Priority: normal
Severity: trivial Version:
Component: Administration Keywords: has-patch has-unit-tests close
Focuses: Cc:

Description

the "menu-top-first" class is there twice (just open /wp-admin/)

<li class="wp-first-item wp-has-submenu wp-has-current-submenu wp-menu-open menu-top menu-top-first menu-icon-dashboard menu-top-first" id="menu-dashboard">

Same issue also here:

<a href='index.php' class="wp-first-item wp-has-submenu wp-has-current-submenu wp-menu-open menu-top menu-top-first menu-icon-dashboard menu-top-first">

Attachments (3)

dashboard.jpg (1008.0 KB) - added by karthickmurugan 4 months ago.
Inspect Element screenshot of Dashboard
when woocommerce is active.png (407.0 KB) - added by vishalmori 3 months ago.
When woocommerce is active
without woocommerce.png (404.9 KB) - added by vishalmori 3 months ago.
Whithout woocommerce

Download all attachments as: .zip

Change History (16)

#1 @sabernhardt
4 months ago

  • Component changed from Administration to Toolbar

#2 @sabernhardt
4 months ago

  • Component changed from Toolbar to Administration

My mistake. You meant the side admin menu.

@karthickmurugan
4 months ago

Inspect Element screenshot of Dashboard

#3 @karthickmurugan
4 months ago

  • Keywords reporter-feedback added

Hi @kkmuffme.,

I cannot find the exact issue that you have mentioned. The class you have mentioned is not duplicated. Please check the attached screenshot

#4 @abcd95
4 months ago

Hey @kkmuffme,

As @karthickmurugan demonstrated, even I couldn't find the duplication of the "menu-top-first" class, neither in the codebase nor after inspecting the admin menu page.

Can you please provide a specific location or screenshot of the page where you have encountered this issue?

This ticket was mentioned in PR #7888 on WordPress/wordpress-develop by @kkmuffme.


4 months ago
#5

  • Keywords has-patch has-unit-tests added

#7 @vishalmori
3 months ago

Hello @kkmuffme,
I tested the issue and found that the class is added twice when the WooCommerce plugin is activated. When I deactivate or remove WooCommerce, the issue is resolved. Therefore, this is not a WordPress core issue.

Environment with woocommerce

  • WordPress: 6.7.1
  • PHP: 8.1.2-1ubuntu2.20
  • Server: Apache/2.4.52 (Ubuntu)
  • Database: mysqli (Server: 8.0.40-0ubuntu0.22.04.1 / Client: mysqlnd 8.1.2-1ubuntu2.20)
  • Browser: Chrome 131.0.0.0
  • OS: Linux
  • Theme: Twenty Twenty-Five 1.0
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0
    • WooCommerce 9.5.1

Result: ✅ Issue occurs (reproduced).

Environment without woocommerce

  • WordPress: 6.7.1
  • PHP: 8.1.2-1ubuntu2.20
  • Server: Apache/2.4.52 (Ubuntu)
  • Database: mysqli (Server: 8.0.40-0ubuntu0.22.04.1 / Client: mysqlnd 8.1.2-1ubuntu2.20)
  • Browser: Chrome 131.0.0.0
  • OS: Linux
  • Theme: Twenty Twenty-Five 1.0
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Result: ❌ Issue does not occur.

Last edited 3 months ago by vishalmori (previous) (diff)

@vishalmori
3 months ago

When woocommerce is active

@vishalmori
3 months ago

Whithout woocommerce

#8 @SergeyBiryukov
3 months ago

  • Milestone changed from Awaiting Review to 6.8
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


11 days ago

#10 @audrasjb
11 days ago

  • Keywords close added

As per today's bug scrub, it appears this ticket is not directly related to Core. Let's wait for a confirmation though. I'm adding the close keyword in the meantime.

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


97 minutes ago

#12 @audrasjb
94 minutes ago

  • Milestone 6.8 deleted
  • Resolution set to invalid
  • Status changed from reviewing to closed

I'm closing this ticket as it looks like it's not related to WP Core.Please open a ticket on WooCommerce side.

Note: See TracTickets for help on using tickets.