WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#6620 closed defect (bug) (invalid)

Typo in menu-header.php

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

Description

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
13 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
13 years ago

  • Milestone 2.5.1 deleted

#3 @Viper007Bond
13 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.