Make WordPress Core

Opened 2 years ago

Closed 20 months ago

Last modified 20 months ago

#62546 closed defect (bug) (invalid)

Duplicate menu-top-first class in admin menu

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

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 2 years ago.
Inspect Element screenshot of Dashboard
when woocommerce is active.png​ (407.0 KB ) - added by vishalmori 2 years ago.
When woocommerce is active
without woocommerce.png​ (404.9 KB ) - added by vishalmori 2 years ago.
Whithout woocommerce

Download all attachments as: .zip

Change History (17)

#1 @sabernhardt
2 years ago

  • Component Administration → Toolbar

#2 @sabernhardt
2 years ago

  • Component Toolbar → Administration

My mistake. You meant the side admin menu.

@karthickmurugan
2 years ago

Inspect Element screenshot of Dashboard

#3 @karthickmurugan
2 years 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
2 years 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.


2 years ago
#5

  • Keywords has-patch has-unit-tests added

#7 @vishalmori
2 years 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 2 years ago by vishalmori (previous) (diff)

#8 @SergeyBiryukov
2 years ago

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

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


21 months ago

#10 @audrasjb
21 months 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.


20 months ago

#12 @audrasjb
20 months ago

  • Milestone 6.8
  • Resolution → invalid
  • Status reviewing → closed

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

#14 @JeffPaul
20 months ago

Noting that Woo closed the issue there, so if you have insights for them please comment on ​https://github.com/woocommerce/woocommerce/issues/56466

Note: See TracTickets for help on using tickets.