Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#6620 closed defect (bug) (invalid)

Typo in menu-header.php

Reported by: mattyrob's profile mattyrob Owned by:
Milestone: Priority: high
Severity: major Version: 2.5
Component: Administration Keywords: admin menus
Focuses: Cc:


I think there may be a typo in menu-header.php in wp-admin.

On line 90 (current trunk verion) there is a do_action to a hook that is otherwise undefined, so far as I can tell.

Current code is:

do_action( 'adminmenu' );

Should this be:

do_action( 'admin_menu' );

Note the additional underscore

Change History (3)

#1 @mattyrob
16 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Whoops, posted the ticket without testing fully first.

Code is correct as it stands.

#2 @Nazgul
16 years ago

  • Milestone 2.5.1 deleted

#3 @Viper007Bond
16 years ago

Actions don't have to be defined anyway, or even used anywhere. Most aren't, they're only there for plugins.

For example, placing this randomly is perfectly acceptable: `do_action( 'bsfsar43hjk4' );

Note: See TracTickets for help on using tickets.